[ticket/14168] Correctly state return type of upload and upload_attachment

PHPBB3-14168
This commit is contained in:
Marc Alexander 2015-10-12 12:11:26 +02:00
parent 49312f05f8
commit bb2634b5e5
3 changed files with 3 additions and 3 deletions

View file

@ -400,7 +400,7 @@ function posting_gen_topic_types($forum_id, $cur_topic_type = POST_NORMAL)
* @param bool $is_message Whether it is a PM or not * @param bool $is_message Whether it is a PM or not
* @param array $local_filedata A filespec object created for the local file * @param array $local_filedata A filespec object created for the local file
* *
* @return \phpbb\files\filespec * @return array File data array
*/ */
function upload_attachment($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = false) function upload_attachment($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = false)
{ {

View file

@ -90,7 +90,7 @@ class manager
* @param bool $is_message Whether it is a PM or not * @param bool $is_message Whether it is a PM or not
* @param array $local_filedata An file data object created for the local file * @param array $local_filedata An file data object created for the local file
* *
* @return object filespec * @return array File data array
*/ */
public function upload($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = []) public function upload($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = [])
{ {

View file

@ -104,7 +104,7 @@ class upload
* @param bool $is_message Whether it is a PM or not * @param bool $is_message Whether it is a PM or not
* @param array $local_filedata An file data object created for the local file * @param array $local_filedata An file data object created for the local file
* *
* @return object filespec * @return array File data array
*/ */
public function upload($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = array()) public function upload($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = array())
{ {