We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b705a commit 3c76361Copy full SHA for 3c76361
src/Console/InstallCommand.php
@@ -208,7 +208,9 @@ protected function determineTestEnforcement(bool $ask = true): bool
208
$process->run();
209
210
/** Count the number of tests - they'll always have :: between the filename and test name */
211
- $hasMinimumTests = collect(explode("\n", trim($process->getOutput())))
+ $hasMinimumTests = Str::of($process->getOutput())
212
+ ->trim()
213
+ ->explode("\n")
214
->filter(fn ($line) => str_contains($line, '::'))
215
->count() >= self::MIN_TEST_COUNT;
216
}
0 commit comments