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')) {