Skip to content

Commit

Permalink
Update NewCommand.php (#268)
Browse files Browse the repository at this point in the history
Wrap PHP Binary in quotes for all commands
  • Loading branch information
mpociot authored Jul 18, 2023
1 parent 31330a6 commit 81b151f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' : '',
Expand Down Expand Up @@ -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' : '',
Expand Down Expand Up @@ -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, [
Expand Down

0 comments on commit 81b151f

Please sign in to comment.