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
198
198
199
199
private function fixAvroTypes (string $ rawJson ): string
200
200
{
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 );
206
206
207
207
return $ json ;
208
208
}
You can’t perform that action at this time.
0 commit comments