Skip to content

Commit 81b151f

Browse files
authored
Update NewCommand.php (#268)
Wrap PHP Binary in quotes for all commands
1 parent 31330a6 commit 81b151f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NewCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ protected function installBreeze(string $directory, string $stack, string $testi
222222
$commands = array_filter([
223223
$this->findComposer().' require laravel/breeze',
224224
trim(sprintf(
225-
PHP_BINARY.' artisan breeze:install %s %s %s %s',
225+
'"'.PHP_BINARY.'" artisan breeze:install %s %s %s %s',
226226
$stack,
227227
$testingFramework == 'pest' ? '--pest' : '',
228228
$dark ? '--dark' : '',
@@ -254,7 +254,7 @@ protected function installJetstream(string $directory, string $stack, string $te
254254
$commands = array_filter([
255255
$this->findComposer().' require laravel/jetstream',
256256
trim(sprintf(
257-
PHP_BINARY.' artisan jetstream:install %s %s %s %s',
257+
'"'.PHP_BINARY.'" artisan jetstream:install %s %s %s %s',
258258
$stack,
259259
$teams ? '--teams' : '',
260260
$dark ? '--dark' : '',
@@ -368,7 +368,7 @@ protected function installPest(string $directory, InputInterface $input, OutputI
368368
$commands = array_filter([
369369
$this->findComposer().' remove phpunit/phpunit --dev',
370370
$this->findComposer().' require pestphp/pest:^2.0 pestphp/pest-plugin-laravel:^2.0 --dev',
371-
PHP_BINARY.' ./vendor/bin/pest --init',
371+
'"'.PHP_BINARY.'" ./vendor/bin/pest --init',
372372
]);
373373

374374
$this->runCommands($commands, $input, $output, [

0 commit comments

Comments
 (0)