Type hinting please
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Mon, 5 Dec 2011 02:29:08 +0000 (02:29 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Mon, 5 Dec 2011 02:29:08 +0000 (02:29 +0000)
includes/Namespace.php
includes/Title.php

index 57840c9..d32a53c 100644 (file)
@@ -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
index 28defc5..22d6aee 100644 (file)
@@ -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
         */