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 2a67884 commit fb78dadCopy full SHA for fb78dad
bin/validate-json
@@ -218,7 +218,7 @@ $refResolver = new JsonSchema\RefResolver($retriever);
218
$refResolver->resolve($schema, $urlSchema);
219
220
if (isset($arOptions['--dump-schema'])) {
221
- $options = version_compare(PHP_VERSION, '5.4.0', '>=') ? JSON_PRETTY_PRINT : 0;
+ $options = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0;
222
echo json_encode($schema, $options) . "\n";
223
exit();
224
}
0 commit comments