Skip to content

Commit

Permalink
fix: str_replace issue when deploy magento#808
Browse files Browse the repository at this point in the history
str_replace(): Argument magento#3 ($subject) must be of type array|string, int giv

Signed-off-by: Son Bui <[email protected]>
  • Loading branch information
sonbui00 committed Oct 30, 2023
1 parent 4264e7b commit a15c3c7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public function execute()
}

array_walk_recursive($config, function (&$value) use ($baseHost, $actualHost, &$replaced) {
if (!is_string($value)) {
return;
}
$value = str_replace($baseHost, $actualHost, $value, $replaceCount);
if ($replaceCount) {
$replaced = true;
Expand Down

0 comments on commit a15c3c7

Please sign in to comment.