Skip to content

Commit 3193487

Browse files
committed
Updating files
1 parent df4daa6 commit 3193487

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

modules/openapi-generator/src/main/resources/php/FormDataProcessor.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class FormDataProcessor
142142
return $this->processModel($value);
143143
}
144144

145-
if (is_array($value) || is_object($value)) {
145+
if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) {
146146
$data = [];
147147
148148
foreach ($value as $k => $v) {

samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,3 @@ lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php
127127
lib/Model/User.php
128128
lib/ObjectSerializer.php
129129
phpunit.xml.dist
130-
test/Model/PetWithFileTest.php

samples/client/petstore/php/psr-18/.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,3 @@ lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php
128128
lib/Model/User.php
129129
lib/ObjectSerializer.php
130130
phpunit.xml.dist
131-
test/Model/PetWithFileTest.php

samples/client/petstore/php/psr-18/lib/FormDataProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function makeFormSafe($value)
151151
return $this->processModel($value);
152152
}
153153

154-
if (is_array($value) || is_object($value)) {
154+
if (is_array($value) || (is_object($value) && !$value instanceof \DateTimeInterface)) {
155155
$data = [];
156156

157157
foreach ($value as $k => $v) {

0 commit comments

Comments
 (0)