X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FStatusValue.php;h=16cb1ed1d301f7ed4c60bd12e8726a40eb9a5850;hb=130ec2523df12a3ca2fe0d422163696d09fcea08;hp=f9dcc1b52edd016ef6cb0ff49da780f1e3828582;hpb=237d3271fd313ebe09858a5c442a91216a7b61cf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/StatusValue.php b/includes/libs/StatusValue.php index f9dcc1b52e..16cb1ed1d3 100644 --- a/includes/libs/StatusValue.php +++ b/includes/libs/StatusValue.php @@ -68,14 +68,14 @@ class StatusValue { public static function newFatal( $message /*, parameters...*/ ) { $params = func_get_args(); $result = new static(); - call_user_func_array( [ &$result, 'fatal' ], $params ); + $result->fatal( ...$params ); return $result; } /** * Factory function for good results * - * @param mixed $value + * @param mixed|null $value * @return static */ public static function newGood( $value = null ) { @@ -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; @@ -214,7 +214,7 @@ class StatusValue { /** * Merge another status object into this one * - * @param StatusValue $other Other StatusValue object + * @param StatusValue $other * @param bool $overwriteValue Whether to override the "value" member */ public function merge( $other, $overwriteValue = false ) {