This fixes an issue introduced in 2.13.0. SplFileObject is handled in the is_array check, which will try to use settype on the SplFileObject, which turns into a ValueError
settype(): Argument #2 ($type) must be a valid type
By placing the SplFileObject earlier, that fixes the issue.
I know this isn't the right solution, i.e. it should be generated from the OpenAPI spec, but I was unable to find how best to regenerate it, as it seems already fixed on the openapi-generator, so opened this PR for discussion.
This fixes an issue introduced in 2.13.0.
SplFileObject
is handled in theis_array
check, which will try to usesettype
on theSplFileObject
, which turns into aValueError
settype(): Argument #2 ($type) must be a valid type
By placing the
SplFileObject
earlier, that fixes the issue.I know this isn't the right solution, i.e. it should be generated from the OpenAPI spec, but I was unable to find how best to regenerate it, as it seems already fixed on the openapi-generator, so opened this PR for discussion.