Skip to content

Commit 3a70440

Browse files
committed
Fix installer package conflict
1 parent c462138 commit 3a70440

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"laravel/pint": "^1.24",
3030
"nunomaduro/collision": "^8.6",
3131
"orchestra/testbench": "^10.0",
32-
"pestphp/pest": "^4.0",
32+
"pestphp/pest": "^4.1",
3333
"pestphp/pest-plugin-laravel": "^4.0"
3434
},
3535
"autoload": {

src/Console/InstallerTraits/PestTests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function configureTests(): void
1919
$this->removeComposerPackages(['phpunit/phpunit'], true);
2020
}
2121

22-
if (! $this->requireComposerPackages(['pestphp/pest:^3.0', 'pestphp/pest-plugin-laravel:^3.0'], true)) {
22+
if (! $this->requireComposerPackages(['pestphp/pest:^4.0', 'pestphp/pest-plugin-laravel:^4.0'], true)) {
2323
return;
2424
}
2525

@@ -46,6 +46,7 @@ protected function removeComposerPackages(array $packages, $asDev = false): bool
4646
$command ?? ['composer', 'remove'],
4747
$packages,
4848
$asDev ? ['--dev'] : [],
49+
['-W'],
4950
);
5051

5152
return (new Process($command, base_path(), ['COMPOSER_MEMORY_LIMIT' => '-1']))
@@ -67,6 +68,7 @@ protected function requireComposerPackages(array $packages, $asDev = false): boo
6768
$command ?? ['composer', 'require'],
6869
$packages,
6970
$asDev ? ['--dev'] : [],
71+
['-W'],
7072
);
7173

7274
return (new Process($command, base_path(), ['COMPOSER_MEMORY_LIMIT' => '-1']))

0 commit comments

Comments
 (0)