Skip to content

Commit 6a896be

Browse files
committed
Missed one mixed
1 parent 9a3327b commit 6a896be

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class ObjectSerializer
324324
*
325325
* @return array [key => value] of formdata
326326
*/
327-
public static function toFormValue(string $key, mixed $value)
327+
public static function toFormValue(string $key, $value)
328328
{
329329
if ($value instanceof \SplFileObject) {
330330
return [$key => $value->getRealPath()];

samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public static function toHeaderValue($value)
333333
*
334334
* @return array [key => value] of formdata
335335
*/
336-
public static function toFormValue(string $key, mixed $value)
336+
public static function toFormValue(string $key, $value)
337337
{
338338
if ($value instanceof \SplFileObject) {
339339
return [$key => $value->getRealPath()];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public static function toHeaderValue($value)
333333
*
334334
* @return array [key => value] of formdata
335335
*/
336-
public static function toFormValue(string $key, mixed $value)
336+
public static function toFormValue(string $key, $value)
337337
{
338338
if ($value instanceof \SplFileObject) {
339339
return [$key => $value->getRealPath()];

0 commit comments

Comments
 (0)