From 28abb2620adc1586434d67600f398a3c0541ded5 Mon Sep 17 00:00:00 2001 From: Erik Bernhardson Date: Mon, 4 May 2015 15:03:15 -0700 Subject: [PATCH] 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 --- includes/search/SearchEngine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1