We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 804b9cd commit 752558dCopy full SHA for 752558d
libs/cli-utils/src/Flags.php
@@ -132,7 +132,7 @@ public static function parseArgv(array $params, array $config = []): array
132
next($params);
133
134
// is options
135
- if ($p{0} === '-') {
+ if ($p[0] === '-') {
136
$value = true;
137
$option = substr($p, 1);
138
$isLong = false;
@@ -148,7 +148,7 @@ public static function parseArgv(array $params, array $config = []): array
148
}
149
150
// short-opt: value specified inline (-<opt>=<value>)
151
- } elseif (isset($option{1}) && $option{1} === '=') {
+ } elseif (isset($option[1]) && $option[1] === '=') {
152
[$option, $value] = explode('=', $option, 2);
153
154
@@ -310,7 +310,7 @@ public static function nextIsValue($val): bool
310
311
312
// it isn't option or named argument
313
- return $val{0} !== '-' && false === strpos($val, '=');
+ return $val[0] !== '-' && false === strpos($val, '=');
314
315
316
/**
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments