mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
replace str_starts_with to support pre php 8.0
This commit is contained in:
@ -82,7 +82,7 @@ final class MapArguments
|
||||
private static function needsCoverage(): bool
|
||||
{
|
||||
foreach ($_SERVER['argv'] as $argument) {
|
||||
if(str_starts_with($argument, '--coverage')) {
|
||||
if(strpos($argument, '--coverage',) === 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user