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:
thiemowmde 2022-11-02 12:30:38 +01:00
parent fff51b80bd
commit 44eb02cae8

View file

@ -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,