Merge pull request #2434 from arnested/php-map-number-without-format

[PHP] Map number without format to float
This commit is contained in:
wing328
2016-04-09 17:01:41 +08:00

View File

@@ -96,6 +96,7 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
typeMapping = new HashMap<String, String>();
typeMapping.put("integer", "int");
typeMapping.put("long", "int");
typeMapping.put("number", "float");
typeMapping.put("float", "float");
typeMapping.put("double", "double");
typeMapping.put("string", "string");