mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Fix "str_replace(): Argument #2 ($replace) must be of type array|string, int given" TypeError while running test of Meritoo\Common\ValueObject\Template::fill()
This commit is contained in:
@@ -75,7 +75,7 @@ class Template
|
||||
|
||||
if (isset($values[$placeholderName])) {
|
||||
$value = $values[$placeholderName];
|
||||
$result = str_replace($placeholder, $value, $result);
|
||||
$result = str_replace($placeholder, (string)$value, $result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user