From a38f509ee19e1915189dfc3d63f59162a5b6c39b Mon Sep 17 00:00:00 2001 From: Alexander Dmitryuk Date: Fri, 27 Dec 2019 11:52:10 +0700 Subject: [PATCH] Repleace deprecated curved brackets (#607) --- bin/validate-json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/validate-json b/bin/validate-json index 3619bf5..d2102fe 100755 --- a/bin/validate-json +++ b/bin/validate-json @@ -37,7 +37,7 @@ $arOptions = array(); $arArgs = array(); array_shift($argv);//script itself foreach ($argv as $arg) { - if ($arg{0} == '-') { + if ($arg[0] == '-') { $arOptions[$arg] = true; } else { $arArgs[] = $arg; @@ -95,7 +95,7 @@ function getUrlFromPath($path) //already an URL return $path; } - if ($path{0} == '/') { + if ($path[0] == '/') { //absolute path return 'file://' . $path; } @@ -200,7 +200,7 @@ if ($pathSchema === null) { exit(6); } } -if ($pathSchema{0} == '/') { +if ($pathSchema[0] == '/') { $pathSchema = 'file://' . $pathSchema; }