From 81b151f754eda0da311080aa9dbc570f73816b16 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Tue, 18 Jul 2023 03:11:39 +0200 Subject: [PATCH] Update NewCommand.php (#268) Wrap PHP Binary in quotes for all commands --- src/NewCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index eeaddfb3..d915e008 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -222,7 +222,7 @@ protected function installBreeze(string $directory, string $stack, string $testi $commands = array_filter([ $this->findComposer().' require laravel/breeze', trim(sprintf( - PHP_BINARY.' artisan breeze:install %s %s %s %s', + '"'.PHP_BINARY.'" artisan breeze:install %s %s %s %s', $stack, $testingFramework == 'pest' ? '--pest' : '', $dark ? '--dark' : '', @@ -254,7 +254,7 @@ protected function installJetstream(string $directory, string $stack, string $te $commands = array_filter([ $this->findComposer().' require laravel/jetstream', trim(sprintf( - PHP_BINARY.' artisan jetstream:install %s %s %s %s', + '"'.PHP_BINARY.'" artisan jetstream:install %s %s %s %s', $stack, $teams ? '--teams' : '', $dark ? '--dark' : '', @@ -368,7 +368,7 @@ protected function installPest(string $directory, InputInterface $input, OutputI $commands = array_filter([ $this->findComposer().' remove phpunit/phpunit --dev', $this->findComposer().' require pestphp/pest:^2.0 pestphp/pest-plugin-laravel:^2.0 --dev', - PHP_BINARY.' ./vendor/bin/pest --init', + '"'.PHP_BINARY.'" ./vendor/bin/pest --init', ]); $this->runCommands($commands, $input, $output, [