From 141f8cfee030f7825ea733459e6643e04ce3e1a7 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 7 Jun 2019 17:23:50 +0200 Subject: [PATCH] Update type of PermissionManager::resultToError Also update the copy source in Title::resultToError Change-Id: Iaa3b8d124e599fe9db7f941d0591776adc96906b --- includes/Permissions/PermissionManager.php | 2 +- includes/Title.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.20.1