mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +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
|
private static function needsCoverage(): bool
|
||||||
{
|
{
|
||||||
foreach ($_SERVER['argv'] as $argument) {
|
foreach ($_SERVER['argv'] as $argument) {
|
||||||
if(str_starts_with($argument, '--coverage')) {
|
if(strpos($argument, '--coverage',) === 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user