X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FStatusValue.php;h=e860ec491fff21fd003d3b311405764cf67c079c;hb=c584722cc2e3d33edae58d46c2149063b3fc6d72;hp=bff9abd61f47e5d52d5da705d9687a28619dee8e;hpb=25a1651aadad734c5124a52225c972b00e92de96;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/StatusValue.php b/includes/libs/StatusValue.php index bff9abd61f..e860ec491f 100644 --- a/includes/libs/StatusValue.php +++ b/includes/libs/StatusValue.php @@ -85,10 +85,10 @@ class StatusValue { * defined as: * [ * 0 => object(StatusValue) # the StatusValue with error messages, only - * 1 => object(StatusValue) # The StatusValue with warning messages, only + * 1 => object(StatusValue) # The StatusValue with warning messages, only * ] * - * @return array + * @return StatusValue[] */ public function splitByErrorType() { $errorsOnlyStatusValue = clone $this; @@ -154,13 +154,13 @@ class StatusValue { } /** - * Change operation resuklt + * Change operation result * * @param bool $ok Whether the operation completed * @param mixed $value */ public function setResult( $ok, $value = null ) { - $this->ok = $ok; + $this->ok = (bool)$ok; $this->value = $value; }