Skip to content

Commit 2a3c2f1

Browse files
committed
Add "date" to type mapping
1 parent 5d217df commit 2a3c2f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/PhpClientCodegen.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public PhpClientCodegen() {
9090
"float",
9191
"string",
9292
"object",
93+
"date",
9394
"DateTime",
9495
"mixed",
9596
"number",
@@ -117,6 +118,7 @@ public PhpClientCodegen() {
117118
typeMapping.put("string", "string");
118119
typeMapping.put("byte", "int");
119120
typeMapping.put("boolean", "bool");
121+
typeMapping.put("date", "\\DateTime");
120122
typeMapping.put("Date", "\\DateTime");
121123
typeMapping.put("DateTime", "\\DateTime");
122124
typeMapping.put("file", "\\SplFileObject");

0 commit comments

Comments
 (0)