From a15c3c73735a65f0354c604458729581ea70051a Mon Sep 17 00:00:00 2001 From: Son Bui Date: Mon, 30 Oct 2023 15:18:53 +0800 Subject: [PATCH] fix: str_replace issue when deploy #808 str_replace(): Argument #3 ($subject) must be of type array|string, int giv Signed-off-by: Son Bui --- .../Deploy/InstallUpdate/ConfigUpdate/Urls/Environment.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Step/Deploy/InstallUpdate/ConfigUpdate/Urls/Environment.php b/src/Step/Deploy/InstallUpdate/ConfigUpdate/Urls/Environment.php index 597e087b84..22af46602a 100644 --- a/src/Step/Deploy/InstallUpdate/ConfigUpdate/Urls/Environment.php +++ b/src/Step/Deploy/InstallUpdate/ConfigUpdate/Urls/Environment.php @@ -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;