From a34cc93b160a2ed6e2468136a87633c6ae76abd5 Mon Sep 17 00:00:00 2001 From: Martindev Date: Sun, 6 Jun 2021 17:05:18 +0100 Subject: [PATCH] Fix not null --- src/StripePaymentManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StripePaymentManager.php b/src/StripePaymentManager.php index daf24c5..5d069d9 100644 --- a/src/StripePaymentManager.php +++ b/src/StripePaymentManager.php @@ -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);