From: Umherirrender Date: Fri, 7 Jun 2019 15:23:50 +0000 (+0200) Subject: Update type of PermissionManager::resultToError X-Git-Tag: 1.34.0-rc.0~1360^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=141f8cfee030f7825ea733459e6643e04ce3e1a7;p=lhc%2Fweb%2Fwiklou.git Update type of PermissionManager::resultToError Also update the copy source in Title::resultToError Change-Id: Iaa3b8d124e599fe9db7f941d0591776adc96906b --- diff --git a/includes/Permissions/PermissionManager.php b/includes/Permissions/PermissionManager.php index e44380328a..202014f072 100644 --- a/includes/Permissions/PermissionManager.php +++ b/includes/Permissions/PermissionManager.php @@ -324,7 +324,7 @@ class PermissionManager { * Add the resulting error code to the errors array * * @param array $errors List of current errors - * @param array $result Result of errors + * @param array|string|MessageSpecifier|false $result Result of errors * * @return array List of errors */ diff --git a/includes/Title.php b/includes/Title.php index dee6c52596..0e957912e3 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2256,7 +2256,7 @@ class Title implements LinkTarget, IDBAccessObject { * Add the resulting error code to the errors array * * @param array $errors List of current errors - * @param array $result Result of errors + * @param array|string|MessageSpecifier|false $result Result of errors * * @return array List of errors */