File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ private function registerSchemaFile(\SplFileInfo $fileInfo): void
135
135
}
136
136
137
137
$ schemaData = json_decode ($ fileContent , true , JSON_THROW_ON_ERROR );
138
- $ namespace = $ schemaData ['namespace ' ] ?? '' ;
138
+ $ namespace = ( string ) $ schemaData ['namespace ' ];
139
139
140
140
if (null === $ schemaData ) {
141
141
throw new SchemaRegistryException (sprintf (SchemaRegistryException::FILE_INVALID , $ fileName ));
@@ -150,7 +150,7 @@ private function registerSchemaFile(\SplFileInfo $fileInfo): void
150
150
$ this ->schemas [$ schemaId ] = $ template ->withSchemaId ($ schemaId );
151
151
152
152
if (true === isset ($ schemaData ['name ' ])) {
153
- $ this ->schemaNamesPerNamespace [$ namespace ][] = $ schemaData ['name ' ];
153
+ $ this ->schemaNamesPerNamespace [$ namespace ][] = ( string ) $ schemaData ['name ' ];
154
154
}
155
155
}
156
156
You can’t perform that action at this time.
0 commit comments