Skip to content

Commit a38f509

Browse files
dmitryukAyesh
authored andcommitted
Repleace deprecated curved brackets (#607)
1 parent 9a34c57 commit a38f509

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/validate-json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $arOptions = array();
3737
$arArgs = array();
3838
array_shift($argv);//script itself
3939
foreach ($argv as $arg) {
40-
if ($arg{0} == '-') {
40+
if ($arg[0] == '-') {
4141
$arOptions[$arg] = true;
4242
} else {
4343
$arArgs[] = $arg;
@@ -95,7 +95,7 @@ function getUrlFromPath($path)
9595
//already an URL
9696
return $path;
9797
}
98-
if ($path{0} == '/') {
98+
if ($path[0] == '/') {
9999
//absolute path
100100
return 'file://' . $path;
101101
}
@@ -200,7 +200,7 @@ if ($pathSchema === null) {
200200
exit(6);
201201
}
202202
}
203-
if ($pathSchema{0} == '/') {
203+
if ($pathSchema[0] == '/') {
204204
$pathSchema = 'file://' . $pathSchema;
205205
}
206206

0 commit comments

Comments
 (0)