X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsite%2FSite.php;h=401f6e48292d051d82a92fee307ec841a813d71f;hb=82bd6b026ef6ecb7f2fe15acaa40c608680dfff1;hp=ec1376564e0253c2f2703138a60d78ca7282d27d;hpb=68b12dfded60597652212fd05df062e45784115f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/Site.php b/includes/site/Site.php index ec1376564e..401f6e4829 100644 --- a/includes/site/Site.php +++ b/includes/site/Site.php @@ -89,7 +89,7 @@ class Site implements Serializable { * * @since 1.21 * - * @var array[] + * @var array[]|false */ protected $localIds = []; @@ -354,7 +354,7 @@ class Site implements Serializable { /** * Returns the full URL for the given page on the site. - * Or false if the needed information is not known. + * Or null if the needed information is not known. * * This generated URL is usually based upon the path returned by getLinkPath(), * but this is not a requirement. @@ -365,13 +365,13 @@ class Site implements Serializable { * * @param bool|string $pageName * - * @return string|bool + * @return string|null */ public function getPageUrl( $pageName = false ) { $url = $this->getLinkPath(); - if ( $url === false ) { - return false; + if ( $url === null ) { + return null; } if ( $pageName !== false ) {