This commit is contained in:
Nuno Maduro
2023-02-07 01:06:31 +00:00
parent f48ae48677
commit 6338d762fa
6 changed files with 31 additions and 27 deletions

View File

@ -27,7 +27,7 @@ final class Laravel
$this->setLaravelParallelRunner();
foreach ($args as $value) {
if (str_starts_with($value, '--runner')) {
if (str_starts_with((string) $value, '--runner')) {
$args = $this->popArgument($value, $args);
}
}
@ -41,9 +41,7 @@ final class Laravel
exit('Using parallel with Pest requires Laravel v8.55.0 or higher.');
}
ParallelRunner::resolveRunnerUsing(function (Options $options, OutputInterface $output): RunnerInterface {
return new WrapperRunner($options, $output);
});
ParallelRunner::resolveRunnerUsing(fn(Options $options, OutputInterface $output): RunnerInterface => new WrapperRunner($options, $output));
}
private static function isALaravelApplication(): bool