Skip to content

Commit

Permalink
Merge pull request #813 from ericdowell/missing-phpdoc-throws
Browse files Browse the repository at this point in the history
[10.x] Add Missing @throws tags
  • Loading branch information
taylorotwell authored Nov 4, 2019
2 parents 93567d1 + 4acba74 commit 7ab823d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SubscriptionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ public function withMetadata($metadata)
*
* @param array $options
* @return \Laravel\Cashier\Subscription
* @throws \Laravel\Cashier\Exceptions\PaymentActionRequired
* @throws \Laravel\Cashier\Exceptions\PaymentFailure
*/
public function add(array $options = [])
{
Expand All @@ -196,6 +198,8 @@ public function add(array $options = [])
* @param \Stripe\PaymentMethod|string|null $paymentMethod
* @param array $options
* @return \Laravel\Cashier\Subscription
* @throws \Laravel\Cashier\Exceptions\PaymentActionRequired
* @throws \Laravel\Cashier\Exceptions\PaymentFailure
*/
public function create($paymentMethod = null, array $options = [])
{
Expand All @@ -210,6 +214,7 @@ public function create($paymentMethod = null, array $options = [])
$trialEndsAt = $this->trialExpires;
}

/** @var \Laravel\Cashier\Subscription $subscription */
$subscription = $this->owner->subscriptions()->create([
'name' => $this->name,
'stripe_id' => $stripeSubscription->id,
Expand Down

0 comments on commit 7ab823d

Please sign in to comment.