From a32114b27f2a336a7f18609811fcef0ca24d8d8e Mon Sep 17 00:00:00 2001 From: Philipp Nardmann Date: Tue, 18 Feb 2025 17:01:47 +0100 Subject: [PATCH] adds explicit nullable to avoid php 8.4 deprecation warnings --- database/factories/SubscriptionFactory.php | 2 +- src/Exceptions/IncompletePayment.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/factories/SubscriptionFactory.php b/database/factories/SubscriptionFactory.php index b0d48203..38bc59b3 100644 --- a/database/factories/SubscriptionFactory.php +++ b/database/factories/SubscriptionFactory.php @@ -69,7 +69,7 @@ public function active(): static * * @return $this */ - public function trialing(DateTimeInterface $trialEndsAt = null): static + public function trialing(?DateTimeInterface $trialEndsAt = null): static { return $this->state([ 'stripe_status' => StripeSubscription::STATUS_TRIALING, diff --git a/src/Exceptions/IncompletePayment.php b/src/Exceptions/IncompletePayment.php index 7a4c61ae..803d5755 100644 --- a/src/Exceptions/IncompletePayment.php +++ b/src/Exceptions/IncompletePayment.php @@ -24,7 +24,7 @@ class IncompletePayment extends Exception * @param \Throwable|null $previous * @return void */ - public function __construct(Payment $payment, $message = '', $code = 0, Throwable $previous = null) + public function __construct(Payment $payment, $message = '', $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous);