From e8b7614f0363509a53d75017798a481a603079cf Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Mon, 23 Sep 2019 18:33:23 +0900 Subject: [PATCH] Update validate-json to use spl_autoload_register (#589) Fixes #574 --- bin/validate-json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/validate-json b/bin/validate-json index aeb818f0..3619bf59 100755 --- a/bin/validate-json +++ b/bin/validate-json @@ -13,7 +13,7 @@ * * @return void */ -function __autoload($className) +spl_autoload_register(function ($className) { $className = ltrim($className, '\\'); $fileName = ''; @@ -26,7 +26,7 @@ function __autoload($className) if (stream_resolve_include_path($fileName)) { require_once $fileName; } -} +}); // support running this tool from git checkout if (is_dir(__DIR__ . '/../src/JsonSchema')) {