Skip to content

Allow country to be empty#394

Open
JeroenJRP wants to merge 1 commit intoenupal:masterfrom
JeroenJRP:patch-1
Open

Allow country to be empty#394
JeroenJRP wants to merge 1 commit intoenupal:masterfrom
JeroenJRP:patch-1

Conversation

@JeroenJRP
Copy link

When no billing address is provided, Stripe webhook call would throw this exeption on PHP 8.2

TypeError: enupal\stripe\services\Countries::getCountryByIso(): Argument #1 ($iso) must be of type string, null given, called in /var/www/html/vendor/enupal/stripe/src/services/Orders.php on line 1049 and defined in /var/www/html/vendor/enupal/stripe/src/services/Countries.php:64

This fix makes sure null is not passed on to the getCountryByIso method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant