EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/283357
Change subject: Make static analysis happy by forcing to string
......................................................................
Make static analysis happy by forcing to string
We already know this is a string because of the is_string() check,
but that's not quite enough to make static analysis happy. Lets
just placate it...
Bug: T132625
Change-Id: I2290e2cd502f1f1b216bd062bcf312ba172cc909
---
M includes/Updater.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch
refs/changes/57/283357/1
diff --git a/includes/Updater.php b/includes/Updater.php
index 38d19cf..dcd4253 100644
--- a/includes/Updater.php
+++ b/includes/Updater.php
@@ -132,7 +132,7 @@
}
$content = $page->getContent();
if ( is_string( $content ) ) {
- $content = new TextContent( $content );
+ $content = new TextContent( (string) $content );
}
// If the event that the content is _still_ not usable,
we have to give up.
if ( !is_object( $content ) ) {
--
To view, visit https://gerrit.wikimedia.org/r/283357
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2290e2cd502f1f1b216bd062bcf312ba172cc909
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits