Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class ObjectSerializer
*
* @return array [key => value] of formdata
*/
public static function toFormValue(string $key, mixed $value)
public static function toFormValue(string $key, $value)
{
if ($value instanceof \SplFileObject) {
return [$key => $value->getRealPath()];
Expand Down Expand Up @@ -628,9 +628,9 @@ class ObjectSerializer
* credit: https://github.com/FranBar1966/FlatPHP
*/
private static function flattenArray(
mixed $source,
$source,
array &$destination,
string $start = '',
string $start = ''
) {
$opt = [
'prefix' => '[',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public static function toHeaderValue($value)
*
* @return array [key => value] of formdata
*/
public static function toFormValue(string $key, mixed $value)
public static function toFormValue(string $key, $value)
{
if ($value instanceof \SplFileObject) {
return [$key => $value->getRealPath()];
Expand Down Expand Up @@ -637,9 +637,9 @@ public static function buildQuery(array $params, $encoding = PHP_QUERY_RFC3986):
* credit: https://github.com/FranBar1966/FlatPHP
*/
private static function flattenArray(
mixed $source,
$source,
array &$destination,
string $start = '',
string $start = ''
) {
$opt = [
'prefix' => '[',
Expand Down
6 changes: 3 additions & 3 deletions samples/client/petstore/php/psr-18/lib/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public static function toHeaderValue($value)
*
* @return array [key => value] of formdata
*/
public static function toFormValue(string $key, mixed $value)
public static function toFormValue(string $key, $value)
{
if ($value instanceof \SplFileObject) {
return [$key => $value->getRealPath()];
Expand Down Expand Up @@ -637,9 +637,9 @@ public static function buildQuery(array $params, $encoding = PHP_QUERY_RFC3986):
* credit: https://github.com/FranBar1966/FlatPHP
*/
private static function flattenArray(
mixed $source,
$source,
array &$destination,
string $start = '',
string $start = ''
) {
$opt = [
'prefix' => '[',
Expand Down
Loading