Skip to content

Commit

Permalink
Fix not null
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIncognito85 authored Jun 6, 2021
1 parent afc1322 commit a34cc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StripePaymentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function createStripeUser(StripeUser $stripeUser)
{
try {
/** @var StripeUser */
$user = $this->table->findBy('stripe_id', $stripeUser->getStripeId());
$user = $this->table->findBy('stripe_id', $stripeUser->getStripeId() ?? "");
$stripeUser->setStripeId($user->getStripeId());
} catch (NoRecordException $e) {
$this->stripe->createCustomer($stripeUser);
Expand Down

0 comments on commit a34cc93

Please sign in to comment.