Skip to content

Commit 8b88407

Browse files
authored
Fixes installation of Pest in Laravel 10 (#254)
1 parent 8673653 commit 8b88407

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NewCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ protected function installPest(string $directory, InputInterface $input, OutputI
355355
chdir($directory);
356356

357357
$commands = array_filter([
358-
$this->findComposer().' require pestphp/pest pestphp/pest-plugin-laravel --dev',
358+
$this->findComposer().' remove nunomaduro/collision phpunit/phpunit --dev',
359+
$this->findComposer().' require nunomaduro/collision:^6.4 pestphp/pest:^1.22 pestphp/pest-plugin-laravel:^1.2 --dev',
359360
PHP_BINARY.' artisan pest:install --no-interaction',
360361
]);
361362

0 commit comments

Comments
 (0)