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)
1  2 
includes/libs/StatusValue.php

@@@ -88,7 -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;
         * @param mixed $value
         */
        public function setResult( $ok, $value = null ) {
 -              $this->ok = $ok;
 +              $this->ok = (bool)$ok;
                $this->value = $value;
        }