X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2FStatusValue.php;h=db085da5486049e2cf549ce532b42ed0576d8b6b;hp=bff9abd61f47e5d52d5da705d9687a28619dee8e;hb=ce079cf6ad79ca8d3360817f809b219d166f9153;hpb=320e4c56132681f811c2819e3e22e98715f46ae7 diff --git a/includes/libs/StatusValue.php b/includes/libs/StatusValue.php index bff9abd61f..db085da548 100644 --- a/includes/libs/StatusValue.php +++ b/includes/libs/StatusValue.php @@ -88,7 +88,7 @@ class StatusValue { * 1 => object(StatusValue) # The StatusValue with warning messages, only * ] * - * @return array + * @return StatusValue[] */ public function splitByErrorType() { $errorsOnlyStatusValue = clone $this; @@ -160,7 +160,7 @@ class StatusValue { * @param mixed $value */ public function setResult( $ok, $value = null ) { - $this->ok = $ok; + $this->ok = (bool)$ok; $this->value = $value; }