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

Update PaymentMethod.php #1601

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Update PaymentMethod.php #1601

merged 1 commit into from
Nov 14, 2023

Conversation

jwjenkin
Copy link
Contributor

@jwjenkin jwjenkin commented Nov 14, 2023

Update the docstring to return void, since that is what the deletePaymentMethod function actually returns

Reason for change: We had assumed from VSCode's reference to the delete method that something was returned. As such, we checked the truthy-ness of that return to flag if there were any issues.

The issue is that the true return was void. A better solution would be to actually add the return hint as part of the function itself, but this is the lightest lift with no code changes I could think of. And it fixes any future confusion for this function.

See #1568 for documentation of the issue

Update the docstring to return `void`, since that is what the `deletePaymentMethod` function actually returns
@taylorotwell taylorotwell merged commit c7ae07c into laravel:14.x Nov 14, 2023
8 checks passed
@jwjenkin jwjenkin deleted the patch-1 branch November 14, 2023 20:15
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.

2 participants