Skip to content

Commit

Permalink
adds explicit nullable to avoid php 8.4 deprecation warnings (#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
PNardman authored Feb 19, 2025
1 parent 8de4910 commit b8dcd00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion database/factories/SubscriptionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/IncompletePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b8dcd00

Please sign in to comment.