Merge "phpunit: Create class aliases for interfaces in PHPUnit 4/6 compat layer"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 8 Apr 2018 19:49:59 +0000 (19:49 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 8 Apr 2018 19:49:59 +0000 (19:49 +0000)
includes/site/MediaWikiPageNameNormalizer.php
includes/site/MediaWikiSite.php
includes/site/Site.php

index c4e490a..3e073f0 100644 (file)
@@ -53,7 +53,7 @@ class MediaWikiPageNameNormalizer {
        /**
         * Returns the normalized form of the given page title, using the
         * normalization rules of the given site. If the given title is a redirect,
-        * the redirect weill be resolved and the redirect target is returned.
+        * the redirect will be resolved and the redirect target is returned.
         *
         * @note This actually makes an API request to the remote site, so beware
         *   that this function is slow and depends on an external service.
@@ -65,7 +65,7 @@ class MediaWikiPageNameNormalizer {
         * @param string $pageName
         * @param string $apiUrl
         *
-        * @return string
+        * @return string|false
         * @throws \MWException
         */
        public function normalizePageName( $pageName, $apiUrl ) {
index f31a77d..0ff7e8b 100644 (file)
@@ -64,7 +64,7 @@ class MediaWikiSite extends Site {
        /**
         * Returns the normalized form of the given page title, using the
         * normalization rules of the given site. If the given title is a redirect,
-        * the redirect weill be resolved and the redirect target is returned.
+        * the redirect will be resolved and the redirect target is returned.
         *
         * @note This actually makes an API request to the remote site, so beware
         *   that this function is slow and depends on an external service.
@@ -79,7 +79,7 @@ class MediaWikiSite extends Site {
         *
         * @param string $pageName
         *
-        * @return string
+        * @return string|false
         * @throws MWException
         */
        public function normalizePageName( $pageName ) {
index a6e6339..55aad77 100644 (file)
@@ -391,7 +391,7 @@ class Site implements Serializable {
         *
         * @param string $pageName
         *
-        * @return string
+        * @return string|false
         */
        public function normalizePageName( $pageName ) {
                return $pageName;