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 9153066 commit 5e9f8aaCopy full SHA for 5e9f8aa
bin/validate-json
@@ -24,7 +24,7 @@ $arOptions = array();
24
$arArgs = array();
25
array_shift($argv);//script itself
26
foreach ($argv as $arg) {
27
- if ($arg{0} == '-') {
+ if ($arg[0] == '-') {
28
$arOptions[$arg] = true;
29
} else {
30
$arArgs[] = $arg;
@@ -82,7 +82,7 @@ function getUrlFromPath($path)
82
//already an URL
83
return $path;
84
}
85
- if ($path{0} == '/') {
+ if ($path[0] == '/') {
86
//absolute path
87
return 'file://' . $path;
88
@@ -187,7 +187,7 @@ if ($pathSchema === null) {
187
exit(6);
188
189
190
-if ($pathSchema{0} == '/') {
+if ($pathSchema[0] == '/') {
191
$pathSchema = 'file://' . $pathSchema;
192
193
0 commit comments