Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 752558d

Browse files
committed
update some
1 parent 804b9cd commit 752558d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎libs/cli-utils/src/Flags.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static function parseArgv(array $params, array $config = []): array
132132
next($params);
133133

134134
// is options
135-
if ($p{0} === '-') {
135+
if ($p[0] === '-') {
136136
$value = true;
137137
$option = substr($p, 1);
138138
$isLong = false;
@@ -148,7 +148,7 @@ public static function parseArgv(array $params, array $config = []): array
148148
}
149149

150150
// short-opt: value specified inline (-<opt>=<value>)
151-
} elseif (isset($option{1}) && $option{1} === '=') {
151+
} elseif (isset($option[1]) && $option[1] === '=') {
152152
[$option, $value] = explode('=', $option, 2);
153153
}
154154

@@ -310,7 +310,7 @@ public static function nextIsValue($val): bool
310310
}
311311

312312
// it isn't option or named argument
313-
return $val{0} !== '-' && false === strpos($val, '=');
313+
return $val[0] !== '-' && false === strpos($val, '=');
314314
}
315315

316316
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /