From 946c1edb6deb99c767ae180660f642aa9638c27e Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 18 Aug 2019 17:47:12 +0200 Subject: [PATCH] PHP 7.4: fix deprecation notice PHP 7.4 deprecates the use of curly braces for array/string character access. See: https://wiki.php.net/rfc/deprecate_curly_braces_array_access --- src/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Settings.php b/src/Settings.php index fb0c4ab5..24071af1 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 ($argument[0] !== '-') { $settings->paths[] = $argument; } else { switch ($argument) {