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(
108108 /**
109109 * @param bool $prefixWithNamespace
110110 * @param bool $useTemplateName
111- * @param bool $optimizeFullNames
112111 * @return integer
113112 * @throws AvroSchemaParseException
114113 * @throws SchemaMergerException
115114 */
116115 public function merge (
117116 bool $ prefixWithNamespace = false ,
118- bool $ useTemplateName = false ,
119- bool $ optimizeFullNames = false
117+ bool $ useTemplateName = false
120118 ): int {
121119 $ mergedFiles = 0 ;
122120 $ registry = $ this ->getSchemaRegistry ();
Original file line number Diff line number Diff line change @@ -148,7 +148,10 @@ private function registerSchemaFile(\SplFileInfo $fileInfo): void
148148
149149 $ schemaId = $ this ->getSchemaId ($ schemaData , $ template );
150150 $ 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+ }
152155 }
153156
154157 /**
You can’t perform that action at this time.
0 commit comments