From 721d5134b7dbebdccc5f856121ed5f0a7a300de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20N=C3=BCrnberger?= Date: Fri, 6 Aug 2021 16:00:03 +0200 Subject: [PATCH] replace `str_starts_with` to support pre php 8.0 --- src/Actions/MapArguments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/MapArguments.php b/src/Actions/MapArguments.php index 57127325..f38d6668 100644 --- a/src/Actions/MapArguments.php +++ b/src/Actions/MapArguments.php @@ -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; } }