Skip to content

Commit 5e9f8aa

Browse files
dmitryukerayd
authored andcommitted
Repleace deprecated curved brackets (#607)
1 parent 9153066 commit 5e9f8aa

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
@@ -24,7 +24,7 @@ $arOptions = array();
2424
$arArgs = array();
2525
array_shift($argv);//script itself
2626
foreach ($argv as $arg) {
27-
if ($arg{0} == '-') {
27+
if ($arg[0] == '-') {
2828
$arOptions[$arg] = true;
2929
} else {
3030
$arArgs[] = $arg;
@@ -82,7 +82,7 @@ function getUrlFromPath($path)
8282
//already an URL
8383
return $path;
8484
}
85-
if ($path{0} == '/') {
85+
if ($path[0] == '/') {
8686
//absolute path
8787
return 'file://' . $path;
8888
}
@@ -187,7 +187,7 @@ if ($pathSchema === null) {
187187
exit(6);
188188
}
189189
}
190-
if ($pathSchema{0} == '/') {
190+
if ($pathSchema[0] == '/') {
191191
$pathSchema = 'file://' . $pathSchema;
192192
}
193193

0 commit comments

Comments
 (0)