From 223aa1e97e5096ed3473f8ab83fe70e8f1b1d278 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerg=C5=91=20Tisza?= Date: Mon, 24 Oct 2016 00:07:53 +0000 Subject: [PATCH] Improve Status/StatusValue::splitByErrorType type hint Change-Id: I6deb76f8906aa86481b84ce1aaebaddf3a52e31d --- includes/Status.php | 2 +- includes/libs/StatusValue.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Status.php b/includes/Status.php index 07828fec7c..a35af6e8c6 100644 --- a/includes/Status.php +++ b/includes/Status.php @@ -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(); diff --git a/includes/libs/StatusValue.php b/includes/libs/StatusValue.php index bff9abd61f..c0acc277db 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; -- 2.20.1