X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flibs%2FStatusValue.php;h=71a0e348dde88cac7e5d15c6dae1fe40b8309a85;hb=1658b2b26bcb03a5a408d9375c53e6619c3a2dbe;hp=3bdafe128202b601fada5f05d2dafbdfe5106e91;hpb=bfb35823d9562ff46aaeb0fa0f04a8fe8ea8b68e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/StatusValue.php b/includes/libs/StatusValue.php index 3bdafe1282..71a0e348dd 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 ) { @@ -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;