Skip to content

Commit

Permalink
PHP 7.4: fix deprecation notice
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jrfnl authored and grogy committed Jan 19, 2020
1 parent aef05f1 commit e0b2811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Settings.php
Expand Up @@ -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) {
Expand Down

0 comments on commit e0b2811

Please sign in to comment.