Skip to content

Commit 11d2da4

Browse files
committed
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
1 parent 00e90ca commit 11d2da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function parseArguments(array $arguments)
7676
$setting = new self;
7777

7878
foreach ($arguments as $argument) {
79-
if ($argument{0} !== '-') {
79+
if ($argument[0] !== '-') {
8080
$setting->paths[] = $argument;
8181
} else {
8282
switch ($argument) {

0 commit comments

Comments
 (0)