From 51380c174f13e7688edd22092565a2022305dea4 Mon Sep 17 00:00:00 2001 From: Stephan Wentz Date: Fri, 11 Dec 2020 10:32:24 +0100 Subject: [PATCH] Remove in php8 deprecated curly braces access to string --- src/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Settings.php b/src/Settings.php index fb0c4ab5..c9910f1f 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -127,7 +127,7 @@ public static function parseArguments(array $arguments) } foreach ($arguments as $argument) { - if ($argument{0} !== '-') { + if (strpos($argument, '-') !== 0) { $settings->paths[] = $argument; } else { switch ($argument) {