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 1111c9a commit e272c9dCopy full SHA for e272c9d
composer.json
@@ -34,5 +34,10 @@
34
"branch-alias": {
35
"dev-main": "3.0-dev"
36
}
37
+ },
38
+ "config": {
39
+ "allow-plugins": {
40
+ "infection/extension-installer": true
41
+ }
42
43
src/Registry/SchemaRegistry.php
@@ -135,7 +135,11 @@ private function registerSchemaFile(\SplFileInfo $fileInfo): void
135
136
137
$schemaData = json_decode($fileContent, true, JSON_THROW_ON_ERROR);
138
- $namespace = $schemaData['namespace'] ?? '';
+ $namespace = '';
139
+
140
+ if (true === isset($schemaData['namespace'])) {
141
+ $namespace = $schemaData['namespace'];
142
143
144
if (null === $schemaData) {
145
throw new SchemaRegistryException(sprintf(SchemaRegistryException::FILE_INVALID, $fileName));
0 commit comments