Skip to content

Commit 16cafeb

Browse files
[2.x] Fixes Pest stubs files (#1240)
* Fixes return status code on Pest * Adjusts versions * Update InstallCommand.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent c00f326 commit 16cafeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Console/InstallCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function handle()
9595
$stubs = $this->getTestStubsPath();
9696

9797
if ($this->option('pest')) {
98-
if ($this->requireComposerDevPackages('pestphp/pest:^1.16', 'pestphp/pest-plugin-laravel:^1.1')) {
98+
if (! $this->requireComposerDevPackages('pestphp/pest:^1.22', 'pestphp/pest-plugin-laravel:^1.4')) {
9999
return 1;
100100
}
101101

@@ -663,11 +663,11 @@ protected function requireComposerDevPackages($packages)
663663
is_array($packages) ? $packages : func_get_args()
664664
);
665665

666-
return ! (new Process($command, base_path(), ['COMPOSER_MEMORY_LIMIT' => '-1']))
666+
return (new Process($command, base_path(), ['COMPOSER_MEMORY_LIMIT' => '-1']))
667667
->setTimeout(null)
668668
->run(function ($type, $output) {
669669
$this->output->write($output);
670-
});
670+
}) === 0;
671671
}
672672

673673
/**

0 commit comments

Comments
 (0)