From f3e2941be41947835e1fad99e6d276b3ee90e029 Mon Sep 17 00:00:00 2001 From: addshore Date: Thu, 30 Nov 2017 19:23:48 +0100 Subject: [PATCH] Fix phpdoc for Category::newFromName Change-Id: I78e18b41acda9aa143360a49fd161b8af1d218be --- includes/Category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Category.php b/includes/Category.php index 629962d2a9..9241730a04 100644 --- a/includes/Category.php +++ b/includes/Category.php @@ -119,9 +119,9 @@ class Category { /** * Factory function. * - * @param array $name A category name (no "Category:" prefix). It need + * @param string $name A category name (no "Category:" prefix). It need * not be normalized, with spaces replaced by underscores. - * @return mixed Category, or false on a totally invalid name + * @return Category|bool Category, or false on a totally invalid name */ public static function newFromName( $name ) { $cat = new self(); -- 2.20.1