X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FStatusValue.php;h=4b381f8de10b244e179a7acba005c732771a943c;hb=e390198c4e4be7632b01173e42050061f1cc346a;hp=3bdafe128202b601fada5f05d2dafbdfe5106e91;hpb=4b5773a4de8156c026be2aab92e059793d612fdd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/StatusValue.php b/includes/libs/StatusValue.php index 3bdafe1282..4b381f8de1 100644 --- a/includes/libs/StatusValue.php +++ b/includes/libs/StatusValue.php @@ -75,7 +75,7 @@ class StatusValue { /** * Factory function for good results * - * @param mixed $value + * @param mixed|null $value * @return static */ public static function newGood( $value = null ) { @@ -93,7 +93,7 @@ class StatusValue { * 1 => object(StatusValue) # The StatusValue with warning messages, only * ] * - * @return StatusValue[] + * @return static[] */ public function splitByErrorType() { $errorsOnlyStatusValue = clone $this; @@ -107,7 +107,7 @@ class StatusValue { } else { $errorsOnlyStatusValue->errors[] = $item; } - }; + } return [ $errorsOnlyStatusValue, $warningsOnlyStatusValue ]; } @@ -162,7 +162,7 @@ class StatusValue { * Change operation result * * @param bool $ok Whether the operation completed - * @param mixed $value + * @param mixed|null $value */ public function setResult( $ok, $value = null ) { $this->ok = (bool)$ok;