From 9f71013c8efd5bda608fcdc56ee92e6dfd95cd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Wed, 22 Oct 2025 14:58:02 +0200 Subject: [PATCH] fix: use first domain_status to calculate deletion date --- src/Entity/Domain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Domain.php b/src/Entity/Domain.php index e044883..2c5d028 100644 --- a/src/Entity/Domain.php +++ b/src/Entity/Domain.php @@ -512,7 +512,7 @@ class Domain */ private function calculateDaysFromStatus(\DateTimeImmutable $now): ?int { - $lastStatus = $this->getDomainStatuses()->last(); + $lastStatus = $this->getDomainStatuses()->first(); if (false === $lastStatus) { return null; }