Improve Status/StatusValue::splitByErrorType type hint
authorGergő Tisza <gtisza@wikimedia.org>
Mon, 24 Oct 2016 00:07:53 +0000 (00:07 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Mon, 24 Oct 2016 00:50:40 +0000 (00:50 +0000)
Change-Id: I6deb76f8906aa86481b84ce1aaebaddf3a52e31d

includes/Status.php
includes/libs/StatusValue.php

index 07828fe..a35af6e 100644 (file)
@@ -113,7 +113,7 @@ class Status extends StatusValue {
         *     1 => object(Status) # The Status with warning messages, only
         * ]
         *
-        * @return array
+        * @return Status[]
         */
        public function splitByErrorType() {
                list( $errorsOnlyStatus, $warningsOnlyStatus ) = parent::splitByErrorType();
index bff9abd..c0acc27 100644 (file)
@@ -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;