Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Fix return type for getSubscriptionById on the WebhookController #66

Merged

Conversation

sebdesign
Copy link
Contributor

I think the return type here was too strict, since the find method could return null, e.g. if a subscription has been deleted, and that would cause an error.

Also, on the cancelSubscription method we are checking if the $subscription is truthy, which means that is a valid case.

I think the return type here was too strict, since the `find` method could return null, e.g. if a subscription has been deleted, and that would cause an error.

Also, on the `cancelSubscription` method we are checking if the $subscription is truthy, which means that is a valid case.
@taylorotwell taylorotwell merged commit 9bb0e5e into laravel:3.0 Dec 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants