diff --git a/src/NewCommand.php b/src/NewCommand.php index 8f4d8b0d..c7b8fc24 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -355,7 +355,8 @@ protected function installPest(string $directory, InputInterface $input, OutputI chdir($directory); $commands = array_filter([ - $this->findComposer().' require pestphp/pest pestphp/pest-plugin-laravel --dev', + $this->findComposer().' remove nunomaduro/collision phpunit/phpunit --dev', + $this->findComposer().' require nunomaduro/collision:^6.4 pestphp/pest:^1.22 pestphp/pest-plugin-laravel:^1.2 --dev', PHP_BINARY.' artisan pest:install --no-interaction', ]);