replace str_starts_with to support pre php 8.0

This commit is contained in:
Adrian Nürnberger
2021-08-06 16:00:03 +02:00
parent 0b5321fdd7
commit 721d5134b7

View File

@ -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;
}
}