Lukáš Černý b444de2b5c
php-nextgen - Fix flatten() to support arrays of files (#21458)
* php-nextgen - Fix flatten() to support arrays of files in multipart/form-data

Previously, FormDataProcessor::flatten() unconditionally passed all values through ObjectSerializer::toString(),
which caused an error when flattening arrays containing file resources (e.g. for OpenAPI
multipart/form-data definitions with `type: array`, `items: type: string, format: binary`).

This change adds a check for is_resource() to preserve stream handles without serialization,
ensuring correct behavior when uploading multiple files in a single request.

* php-nextgen - Fix flatten() to support arrays of files in multipart/form-data - samples
2025-07-02 15:46:42 +08:00
..
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00
2025-06-25 21:34:58 +08:00