We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 605e0de + a6a2d16 commit 04d5086Copy full SHA for 04d5086
ext/ext_skel.php
@@ -172,7 +172,7 @@ function process_args($argv, $argc) {
172
{
173
$val = $argv[$i];
174
175
- if($val{0} != '-' || $val{1} != '-')
+ if($val[0] != '-' || $val[1] != '-')
176
177
continue;
178
}
@@ -201,7 +201,7 @@ function process_args($argv, $argc) {
201
case 'ext':
202
case 'dir':
203
case 'author': {
204
- if (!isset($argv[$i + 1]) || ($argv[$i + 1]{0} == '-' && $argv[$i + 1]{1} == '-')) {
+ if (!isset($argv[$i + 1]) || ($argv[$i + 1][0] == '-' && $argv[$i + 1][1] == '-')) {
205
error('Argument "' . $val . '" expects a value, none passed');
206
} else if ($opt == 'dir' && empty($argv[$i + 1])) {
207
continue 2;
0 commit comments