Merge "Improve Status/StatusValue::splitByErrorType type hint"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 24 Oct 2016 05:11:30 +0000 (05:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 24 Oct 2016 05:11:30 +0000 (05:11 +0000)
includes/libs/StatusValue.php

index c0acc27..db085da 100644 (file)
@@ -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;
        }