launchdarkly / api-client-php

LaunchDarkly API Client for PHP
Other
2 stars 4 forks source link

Getting all flags results in an invalid call to `settype` with `$class` set to `mixed` #4

Open nesl247 opened 2 years ago

nesl247 commented 2 years ago

In https://github.com/launchdarkly/api-client-php/blob/dba5e59faae43b1514909978eaafb14e3292fb6e/lib/ObjectSerializer.php#L338 it makes an invalid call to settype() with $class set to mixed. This is rendering us unable to use this functionality of this library.

https://github.com/OpenAPITools/openapi-generator/issues/8943

carmenquan commented 2 years ago

Hi @nesl247, thanks for bringing this to our attention and linking the associated generator bug. To help me understand better, can you share a snippet of code that will help us reproduce this issue?

nesl247 commented 2 years ago

@juniorb2ss can you provide an example for them?

juniorb2ss commented 2 years ago

@carmenquan We don't have any specific code, it was just calling $sdk->getFeatureFlags(tag: $tag)

Here's more detail: image

More details here: https://github.com/OpenAPITools/openapi-generator/issues/8943