From e38445f18494c4a51ee60d244f63bb676b8a45d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 13 Jan 2026 14:42:35 +0100 Subject: [PATCH] fix: correctly compare age range --- src/Service/ParticipantEligibilityService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/ParticipantEligibilityService.php b/src/Service/ParticipantEligibilityService.php index 2ea785c..dbd28f0 100644 --- a/src/Service/ParticipantEligibilityService.php +++ b/src/Service/ParticipantEligibilityService.php @@ -92,7 +92,7 @@ class ParticipantEligibilityService $travelStartDate = CarbonImmutable::instance($bookingDto->travel->dateFrom); $birthDate = CarbonImmutable::instance($participant->dateOfBirth); - $ageAtTravelStart = $birthDate->diffInYears($travelStartDate); + $ageAtTravelStart = (int) $birthDate->diffInYears($travelStartDate); $birthYear = (int) $birthDate->format('Y'); $constraintType = $service->ageConstraintType ?? 'absolute_age';