\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: