Skip to content

Commit 04d5086

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Update array access syntax deprecated
2 parents 605e0de + a6a2d16 commit 04d5086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ext_skel.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function process_args($argv, $argc) {
172172
{
173173
$val = $argv[$i];
174174

175-
if($val{0} != '-' || $val{1} != '-')
175+
if($val[0] != '-' || $val[1] != '-')
176176
{
177177
continue;
178178
}
@@ -201,7 +201,7 @@ function process_args($argv, $argc) {
201201
case 'ext':
202202
case 'dir':
203203
case 'author': {
204-
if (!isset($argv[$i + 1]) || ($argv[$i + 1]{0} == '-' && $argv[$i + 1]{1} == '-')) {
204+
if (!isset($argv[$i + 1]) || ($argv[$i + 1][0] == '-' && $argv[$i + 1][1] == '-')) {
205205
error('Argument "' . $val . '" expects a value, none passed');
206206
} else if ($opt == 'dir' && empty($argv[$i + 1])) {
207207
continue 2;

0 commit comments

Comments
 (0)