From 2f19523dcfd41d9cf1c56f0d7a242f86eed3670a Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Mon, 9 Mar 2026 13:17:02 +0100 Subject: [PATCH] I extendByHourse method --- src/Traits/WillExpire.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/WillExpire.php b/src/Traits/WillExpire.php index 3838bb2..c00e725 100644 --- a/src/Traits/WillExpire.php +++ b/src/Traits/WillExpire.php @@ -24,7 +24,7 @@ trait WillExpire if ($this->expires_at === null && !$expire_if_null) { // Do not add expiration if it does not expire return; - } elseif ($this->expires_at->isPast()) { + } elseif ($this->expires_at === null || $this->expires_at->isPast()) { $this->expires_at = now()->addHours($hours); } else { $this->expires_at = $this->expires_at->addHours($hours);