X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStatus.php;h=752cc5dc06252d126bdf18c2a2ee4322445df394;hb=28906899160daa96960ea5de676e6e81687e95f8;hp=fbb5daae20ca619564000fd80923db7669144858;hpb=3368cccde53732c1278f51632e69b9865c4ee6ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Status.php b/includes/Status.php index fbb5daae20..752cc5dc06 100644 --- a/includes/Status.php +++ b/includes/Status.php @@ -281,7 +281,7 @@ class Status { * Otherwise, if its an array, just use the first value as the * message and the remaining items as the params. * - * @return string + * @return Message */ protected function getErrorMessage( $error ) { if ( is_array( $error ) ) { @@ -316,9 +316,9 @@ class Status { } /** - * Return an array with the wikitext for each item in the array. + * Return an array with a Message object for each error. * @param array $errors - * @return array + * @return Message[] */ protected function getErrorMessageArray( $errors ) { return array_map( array( $this, 'getErrorMessage' ), $errors ); @@ -361,7 +361,7 @@ class Status { * * @note: this handles RawMessage poorly * - * @param string $type + * @param string|bool $type * @return array */ protected function getStatusArray( $type = false ) {