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 9a34c57 commit a38f509Copy full SHA for a38f509
bin/validate-json
@@ -37,7 +37,7 @@ $arOptions = array();
37
$arArgs = array();
38
array_shift($argv);//script itself
39
foreach ($argv as $arg) {
40
- if ($arg{0} == '-') {
+ if ($arg[0] == '-') {
41
$arOptions[$arg] = true;
42
} else {
43
$arArgs[] = $arg;
@@ -95,7 +95,7 @@ function getUrlFromPath($path)
95
//already an URL
96
return $path;
97
}
98
- if ($path{0} == '/') {
+ if ($path[0] == '/') {
99
//absolute path
100
return 'file://' . $path;
101
@@ -200,7 +200,7 @@ if ($pathSchema === null) {
200
exit(6);
201
202
203
-if ($pathSchema{0} == '/') {
+if ($pathSchema[0] == '/') {
204
$pathSchema = 'file://' . $pathSchema;
205
206
0 commit comments