From: addshore Date: Thu, 30 Nov 2017 18:23:48 +0000 (+0100) Subject: Fix phpdoc for Category::newFromName X-Git-Tag: 1.31.0-rc.0~1338^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=f3e2941be41947835e1fad99e6d276b3ee90e029;p=lhc%2Fweb%2Fwiklou.git Fix phpdoc for Category::newFromName Change-Id: I78e18b41acda9aa143360a49fd161b8af1d218be --- 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();