Skip to content

Commit f4935f1

Browse files
committed
PhpUnit fix
- PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/runner/work/magento-lts/magento-lts/lib/Varien/Object.php on line 594
1 parent aa26cca commit f4935f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Varien/Object.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public function toString($format = '')
591591
} else {
592592
preg_match_all('/\{\{([a-z0-9_]+)\}\}/is', $format, $matches);
593593
foreach ($matches[1] as $var) {
594-
$format = str_replace('{{' . $var . '}}', $this->getData($var), $format);
594+
$format = str_replace('{{' . $var . '}}', (string) $this->getData($var), $format);
595595
}
596596
$str = $format;
597597
}

0 commit comments

Comments
 (0)