Fix type hint in ApiErrorFormatter::addMessagesFromStatus
authorThiemo Mättig <thiemo.maettig@wikimedia.de>
Tue, 9 Jan 2018 13:01:17 +0000 (14:01 +0100)
committerThiemo Mättig <thiemo.maettig@wikimedia.de>
Tue, 9 Jan 2018 13:01:17 +0000 (14:01 +0100)
Change-Id: Ia7b628e9f6a7f8c8d803732504621c13976bf618

includes/api/ApiErrorFormatter.php

index 1749ce7..c637752 100644 (file)
@@ -112,7 +112,7 @@ class ApiErrorFormatter {
         * Add warnings and errors from a StatusValue object to the result
         * @param string|null $modulePath
         * @param StatusValue $status
-        * @param string[] $types 'warning' and/or 'error'
+        * @param string[]|string $types 'warning' and/or 'error'
         */
        public function addMessagesFromStatus(
                $modulePath, StatusValue $status, $types = [ 'warning', 'error' ]