jenkins-bot has submitted this change and it was merged.
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, 2 insertions(+), 2 deletions(-)
Approvals:
Manybubbles: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/search/SearchEngine.php b/includes/search/SearchEngine.php
index 5770276..e5ed23f 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 */
@@ -293,7 +293,7 @@
* 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;
--
To view, visit https://gerrit.wikimedia.org/r/208825
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I78880ffe590ed7193b8482c0ae41c8c69e495878
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits