Created by: fengelniederhammer
Problem
In our project, we use a CS tool that adds declare(strict_types=1)
everywhere. ObjectSerializer::toPathValue
then throws a type error, if you for example have a field in your API that is an integer, as rawurlencode
only accepts string
s.
Proposed Solution
Make ObjectSerializer::toString
actually return a string:
- Less surprises due to inconsistent types
- The function does what it promises
@jebentier , @dkarlovi, @mandrean, @jfastnacht, @ybelenko, @renepardon