You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\OpenAPI\Client\Model\AddressEditable::setAddressCountry declared to accept @param \OpenAPI\Client\Model\CountryExtended|null $address_country address_country (where CountryExtended is enum), but it doesn't work with enums: it failed with Invalid address. Code: address_country must be a string RequestException on calling \OpenAPI\Client\Api\AddressesApi::create.
Summary
\OpenAPI\Client\Model\AddressEditable::setAddressCountry
declared to accept@param \OpenAPI\Client\Model\CountryExtended|null $address_country address_country
(whereCountryExtended
is enum), but it doesn't work with enums: it failed withInvalid address. Code: address_country must be a string
RequestException on calling\OpenAPI\Client\Api\AddressesApi::create
.Stacktrace:
Snippet to test:
Workaround solution:
PS: I have not tested other cases where this enum used in PHPDoc, there are few:
The text was updated successfully, but these errors were encountered: