Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow country to be empty #394

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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