X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2FStatus.php;h=f880663a06d05ba0421950aa9d1058c24c90acac;hb=4d5a6ab95157f97cb8faffcfa7ce0b0eb0194900;hp=f17f173edc4ca9a26448cbbe5940dbf5e043a16f;hpb=1029b36698d38ae4712749e5baaa9505f1426447;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Status.php b/includes/Status.php index f17f173edc..f880663a06 100644 --- a/includes/Status.php +++ b/includes/Status.php @@ -171,7 +171,7 @@ class Status extends StatusValue { * @param string|bool $shortContext A short enclosing context message name, to * be used when there is a single error * @param string|bool $longContext A long enclosing context message name, for a list - * @param string|Language $lang Language to use for processing messages + * @param string|Language|null $lang Language to use for processing messages * @return string */ public function getWikiText( $shortContext = false, $longContext = false, $lang = null ) { @@ -227,7 +227,7 @@ class Status extends StatusValue { * * @param string|string[]|bool $shortContext A message name or an array of message names. * @param string|string[]|bool $longContext A message name or an array of message names. - * @param string|Language $lang Language to use for processing messages + * @param string|Language|null $lang Language to use for processing messages * @return Message */ public function getMessage( $shortContext = false, $longContext = false, $lang = null ) { @@ -279,7 +279,7 @@ class Status extends StatusValue { * If $error is an array, the "params" field is a list of parameters for the message. * * @param array|string $error Code string or (key: code string, params: string[]) map - * @param string|Language $lang Language to use for processing messages + * @param string|Language|null $lang Language to use for processing messages * @return Message */ protected function getErrorMessage( $error, $lang = null ) { @@ -324,7 +324,7 @@ class Status extends StatusValue { /** * Return an array with a Message object for each error. * @param array $errors - * @param string|Language $lang Language to use for processing messages + * @param string|Language|null $lang Language to use for processing messages * @return Message[] */ protected function getErrorMessageArray( $errors, $lang = null ) { @@ -359,7 +359,7 @@ class Status extends StatusValue { /** * Returns a list of status messages of the given type (or all if false) * - * @note: this handles RawMessage poorly + * @note this handles RawMessage poorly * * @param string|bool $type * @return array @@ -388,6 +388,7 @@ class Status extends StatusValue { /** * Don't save the callback when serializing, because Closures can't be * serialized and we're going to clear it in __wakeup anyway. + * @return array */ function __sleep() { $keys = array_keys( get_object_vars( $this ) );