mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Fix incompatible type null vs. string failing in PHP 8.1
This is not allowed to be null. It was always forcefully cast to an empty string anyway. Change-Id: I4134da00014d84818751f68b2c85dbc28b042034
This commit is contained in:
parent
fff51b80bd
commit
44eb02cae8
|
@ -526,7 +526,7 @@ abstract class EchoDiscussionParser {
|
|||
$content = $revision->getContent( SlotRecord::MAIN );
|
||||
$changes = self::getMachineReadableDiff(
|
||||
$prevText,
|
||||
( $content instanceof TextContent ) ? $content->getText() : null
|
||||
( $content instanceof TextContent ) ? $content->getText() : ''
|
||||
);
|
||||
$output = self::interpretDiff(
|
||||
$changes,
|
||||
|
|
Loading…
Reference in a new issue