EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/208825
Change subject: Document namespaces member as nullable
......................................................................
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
---
M includes/search/SearchEngine.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/25/208825/1
diff --git a/includes/search/SearchEngine.php b/includes/search/SearchEngine.php
index 5770276..8bbe5a3 100644
--- a/includes/search/SearchEngine.php
+++ b/includes/search/SearchEngine.php
@@ -33,7 +33,7 @@
/** @var string */
public $prefix = '';
- /** @var int[] */
+ /** @var int[]|null */
public $namespaces = array( NS_MAIN );
/** @var int */
--
To view, visit https://gerrit.wikimedia.org/r/208825
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I78880ffe590ed7193b8482c0ae41c8c69e495878
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits