From 11d2da494616db6604a7088611638e7eeb1ca0d8 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 28 Jun 2020 21:47:46 +0200 Subject: [PATCH] PHP 7.4: fix compatibility issue Array access using curly braces has been deprecated in PHP 7.4. Ref: https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.array-string-access-curly-brace --- src/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Settings.php b/src/Settings.php index af6a339..a35d60d 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -76,7 +76,7 @@ public static function parseArguments(array $arguments) $setting = new self; foreach ($arguments as $argument) { - if ($argument{0} !== '-') { + if ($argument[0] !== '-') { $setting->paths[] = $argument; } else { switch ($argument) {