From 5324c34972dbabe6c439cd2ff6f01cde974f1a36 Mon Sep 17 00:00:00 2001 From: "M. Vondano" Date: Tue, 25 Aug 2020 18:08:04 +0200 Subject: [PATCH] Fix invalid "array to string conversion" in ScriptHandler exception message (see #2184) Description ----------- | Q | A | -----------------| --- | Fixed issues | Fixes https://github.com/contao/manager-bundle/issues/88 | Docs PR or issue | - There is indeed a missing implode at this place. Commits ------- 83c3889e add a missing array->string conversion in the exception message --- manager-bundle/src/Composer/ScriptHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager-bundle/src/Composer/ScriptHandler.php b/manager-bundle/src/Composer/ScriptHandler.php index f1a87b51450..6a998e9f02a 100644 --- a/manager-bundle/src/Composer/ScriptHandler.php +++ b/manager-bundle/src/Composer/ScriptHandler.php @@ -92,7 +92,7 @@ static function (string $type, string $buffer) use ($event): void { ); if (!$process->isSuccessful()) { - throw new \RuntimeException(sprintf('An error occurred while executing the "%s" command: %s', $cmd, $process->getErrorOutput())); + throw new \RuntimeException(sprintf('An error occurred while executing the "%s" command: %s', implode(' ', $cmd), $process->getErrorOutput())); } }