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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ protected function cancelSubscription($subscriptionId): Response
* Get the model for the given subscription ID.
*
* @param string $subscriptionId
* @return \Laravel\Cashier\Subscription
* @return \Laravel\Cashier\Subscription|null
*/
protected function getSubscriptionById($subscriptionId): Subscription
protected function getSubscriptionById($subscriptionId): ?Subscription
{
return Subscription::where('braintree_id', $subscriptionId)->first();
}
Expand Down