From 202d57eef70ddc8cc096c0a77f74224724502638 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Mon, 18 Sep 2023 09:56:09 +0700 Subject: [PATCH] MDL-79041 core: Fix PHPDoc for prepare_file_share_request_data() --- lib/classes/moodlenet/moodlenet_client.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/classes/moodlenet/moodlenet_client.php b/lib/classes/moodlenet/moodlenet_client.php index 49696290c2e..8fe1e4ee7b7 100644 --- a/lib/classes/moodlenet/moodlenet_client.php +++ b/lib/classes/moodlenet/moodlenet_client.php @@ -95,7 +95,9 @@ class moodlenet_client { * Prepare the request data required for sharing a file to MoodleNet. * This creates an array in the format used by \core\httpclient options to send a multipart request. * - * @param array $filedata An array of data relating to the file being shared (as prepared by ::prepare_share_contents). + * @param string $filename Name of the file being shared. + * @param string $mimetype Mime type of the file being shared. + * @param StreamInterface $stream Stream of the file being shared. * @param string $resourcename The name of the resource being shared. * @param string $resourcedescription A description of the resource being shared. * @return array Data in the format required to send a file to MoodleNet using \core\httpclient. @@ -105,7 +107,7 @@ class moodlenet_client { string $mimetype, StreamInterface $stream, string $resourcename, - $resourcedescription, + string $resourcedescription, ): array { return [ 'headers' => [