File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,13 @@ private function replaceSchemaIdWithDefinition(
108
108
/**
109
109
* @param bool $prefixWithNamespace
110
110
* @param bool $useTemplateName
111
- * @param bool $optimizeFullNames
112
111
* @return integer
113
112
* @throws AvroSchemaParseException
114
113
* @throws SchemaMergerException
115
114
*/
116
115
public function merge (
117
116
bool $ prefixWithNamespace = false ,
118
- bool $ useTemplateName = false ,
119
- bool $ optimizeFullNames = false
117
+ bool $ useTemplateName = false
120
118
): int {
121
119
$ mergedFiles = 0 ;
122
120
$ registry = $ this ->getSchemaRegistry ();
Original file line number Diff line number Diff line change @@ -148,7 +148,10 @@ private function registerSchemaFile(\SplFileInfo $fileInfo): void
148
148
149
149
$ schemaId = $ this ->getSchemaId ($ schemaData , $ template );
150
150
$ this ->schemas [$ schemaId ] = $ template ->withSchemaId ($ schemaId );
151
- $ this ->schemaNamesPerNamespace [$ namespace ][] = $ schemaData ['name ' ];
151
+
152
+ if (true === isset ($ schemaData ['name ' ])) {
153
+ $ this ->schemaNamesPerNamespace [$ namespace ][] = $ schemaData ['name ' ];
154
+ }
152
155
}
153
156
154
157
/**
You can’t perform that action at this time.
0 commit comments