WIP
This commit is contained in:
@@ -118,7 +118,7 @@ class Collection implements Stringable
|
||||
throw new Exception("cannot read file: $filepath");
|
||||
}
|
||||
|
||||
$json = json_decode($content, true);
|
||||
$json = json_decode($content, true, flags: JSON_THROW_ON_ERROR);
|
||||
$schema = $json['info']['schema'] ?? '';
|
||||
|
||||
if (str_ends_with($schema, 'v2.0.0/collection.json')) {
|
||||
|
||||
Reference in New Issue
Block a user