From 6d8d4d9efeda91681f123f5164961187f118eec3 Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Mon, 5 Dec 2011 02:29:08 +0000 Subject: [PATCH] Type hinting please --- includes/Namespace.php | 8 ++++---- includes/Title.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/Namespace.php b/includes/Namespace.php index 57840c9bd1..d32a53c39b 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -155,8 +155,8 @@ class MWNamespace { * of this function rather than directly doing comparison will make * sure that code will not potentially break. * - * @param $ns1 The first namespace index - * @param $ns2 The second namespae index + * @param $ns1 int The first namespace index + * @param $ns2 int The second namespae index * * @return bool * @since 1.19 @@ -170,8 +170,8 @@ class MWNamespace { * eg: NS_USER and NS_USER wil return true, as well * NS_USER and NS_USER_TALK will return true. * - * @param $ns1 The first namespace index - * @param $ns2 The second namespae index + * @param $ns1 int The first namespace index + * @param $ns2 int The second namespae index * * @return bool * @since 1.19 diff --git a/includes/Title.php b/includes/Title.php index 28defc58e9..22d6aee863 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1951,7 +1951,7 @@ class Title { * Please make use of this instead of comparing to getNamespace() * This function is much more resistant to changes we may make * to namespaces than code that makes direct comparisons. - * @param $ns The namespace + * @param $ns int The namespace * @return bool * @since 1.19 */ -- 2.20.1