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

Fix Stripe::setAccountId parameter type #1425

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Fix Stripe::setAccountId parameter type #1425

merged 1 commit into from
Jan 19, 2023

Conversation

villfa
Copy link
Contributor

@villfa villfa commented Jan 19, 2023

The account ID is a nullable property but, according the PHPDoc, the related setter method doesn't accept null as an argument (while in fact passing null works fine).
I think it's correct to accept null to be able to reset this static property.

Updating the PHPDoc will fix the PHPStan errors of the form Parameter #1 $accountId of method Stripe\Stripe::setAccountId() expects string, null given..

@CLAassistant
Copy link

CLAassistant commented Jan 19, 2023

CLA assistant check
All committers have signed the CLA.

@pakrym-stripe
Copy link
Contributor

Thank you, @villfa!

@pakrym-stripe pakrym-stripe merged commit bc84cc4 into stripe:master Jan 19, 2023
@villfa villfa deleted the fix/param-type branch January 19, 2023 16:58
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.

None yet

3 participants