N°4517 - PHP 8.1 compatibility: Fix deprecated call str_replace with null value

This commit is contained in:
Benjamin Dalsass
2022-08-25 11:52:11 +02:00
parent bbb5b86864
commit 9a9707e15c

View File

@@ -4231,8 +4231,9 @@ class AttributeText extends AttributeString
{
$sValue = $proposedValue;
// N°4517 - PHP 8.1 compatibility: str_replace call with null cause deprecated message
if ($sValue == null) {
return null;
return '';
}
switch ($this->GetFormat()) {