From ceee59f7df1c30e9fca76c4be77f79eb1352679c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 16 Jul 2024 09:42:54 +1000 Subject: [PATCH] Minor fixes --- app/PaymentDrivers/Stripe/UpdatePaymentMethods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php index 7777da7b7e17..244be05bfc1d 100644 --- a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php +++ b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php @@ -147,7 +147,7 @@ class UpdatePaymentMethods { $sources = $customer->sources ?? false; - if (!$customer || is_null($sources) || !property_exists($sources, 'data')) { + if (!$customer || is_null($sources) || !$sources || !property_exists($sources, 'data')) { return; }