diff --git a/src/Console/Command/BuildCommand.php b/src/Console/Command/BuildCommand.php index 010b1d7..fc92923 100644 --- a/src/Console/Command/BuildCommand.php +++ b/src/Console/Command/BuildCommand.php @@ -64,7 +64,7 @@ final class BuildCommand extends AbstractCommand if ($isDockerCompose) { $process = Process::create( command: ['docker', 'compose', 'build'], - extraArgs: explode(separator: ' ', string: $extraArgs), + extraArgs: explode(separator: ' ', string: strval($extraArgs)), workingDir: $workingDir, ); @@ -79,7 +79,7 @@ final class BuildCommand extends AbstractCommand case ProjectType::Sculpin->value: $process = Process::create( command: ['./vendor/bin/sculpin', 'generate'], - extraArgs: explode(separator: ' ', string: $extraArgs), + extraArgs: explode(separator: ' ', string: strval($extraArgs)), workingDir: $workingDir, ); @@ -92,7 +92,7 @@ final class BuildCommand extends AbstractCommand case ProjectType::Fractal->value: $process = Process::create( command: ['npx', 'fractal', 'build'], - extraArgs: explode(separator: ' ', string: $extraArgs), + extraArgs: explode(separator: ' ', string: strval($extraArgs)), workingDir: $workingDir, ); diff --git a/src/Console/Command/InstallCommand.php b/src/Console/Command/InstallCommand.php index 9b147a2..7270c39 100644 --- a/src/Console/Command/InstallCommand.php +++ b/src/Console/Command/InstallCommand.php @@ -31,7 +31,7 @@ final class InstallCommand extends AbstractCommand language: $language, workingDir: $workingDir, ), - extraArgs: explode(separator: ' ', string: $extraArgs), + extraArgs: explode(separator: ' ', string: strval($extraArgs)), workingDir: $workingDir, ); diff --git a/src/Process/Process.php b/src/Process/Process.php index fe5f87d..e4b1867 100644 --- a/src/Process/Process.php +++ b/src/Process/Process.php @@ -14,7 +14,7 @@ final class Process /** * @param non-empty-array $command * @param string $workingDir - * @param non-empty-string[] $extraArgs + * @param string[] $extraArgs */ public static function create(array $command, string $workingDir, array $extraArgs = []): SymfonyProcess {