From: Erik Bernhardson Date: Mon, 4 May 2015 22:03:15 +0000 (-0700) Subject: Document namespaces member as nullable X-Git-Tag: 1.31.0-rc.0~11494^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=28abb2620adc1586434d67600f398a3c0541ded5;p=lhc%2Fweb%2Fwiklou.git Document namespaces member as nullable This variable is set to null in the replacePrefixes method, document it as such to prevent errors in consuming code. Bug: T98082 Change-Id: I78880ffe590ed7193b8482c0ae41c8c69e495878 --- diff --git a/includes/search/SearchEngine.php b/includes/search/SearchEngine.php index 5770276ac6..e5ed23f5a6 100644 --- a/includes/search/SearchEngine.php +++ b/includes/search/SearchEngine.php @@ -33,7 +33,7 @@ class SearchEngine { /** @var string */ public $prefix = ''; - /** @var int[] */ + /** @var int[]|null */ public $namespaces = array( NS_MAIN ); /** @var int */ @@ -293,7 +293,7 @@ class SearchEngine { * Set which namespaces the search should include. * Give an array of namespace index numbers. * - * @param array $namespaces + * @param int[]|null $namespaces */ function setNamespaces( $namespaces ) { $this->namespaces = $namespaces;