File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -198,11 +198,11 @@ private function snakeToPascal(string $input): string
198198
199199 private function fixAvroTypes (string $ rawJson ): string
200200 {
201- $ json = str_replace ('int ' , 'integer ' , $ rawJson );
202- $ json = str_replace ('long ' , 'number ' , $ json );
203- $ json = str_replace ('float ' , 'number ' , $ json );
204- $ json = str_replace ('double ' , 'number ' , $ json );
205- $ json = str_replace ('bytes ' , 'string ' , $ json );
201+ $ json = str_replace ('" int" ' , '" integer" ' , $ rawJson );
202+ $ json = str_replace ('" long" ' , '" number" ' , $ json );
203+ $ json = str_replace ('" float" ' , '" number" ' , $ json );
204+ $ json = str_replace ('" double" ' , '" number" ' , $ json );
205+ $ json = str_replace ('" bytes" ' , '" string" ' , $ json );
206206
207207 return $ json ;
208208 }
You can’t perform that action at this time.
0 commit comments