wip: dynamic services fields
This commit is contained in:
@@ -126,7 +126,7 @@ class AgeRangeCondition implements FieldConditionInterface
|
||||
*
|
||||
* Uses DateTimeImmutable to ensure immutable date calculations and
|
||||
* handles the calculation accurately accounting for leap years and
|
||||
* exact birth date anniversaries.
|
||||
* exact birthdate anniversaries.
|
||||
*
|
||||
* @param \DateTimeImmutable $dateOfBirth The participant's date of birth
|
||||
*
|
||||
@@ -136,6 +136,6 @@ class AgeRangeCondition implements FieldConditionInterface
|
||||
{
|
||||
$today = new \DateTimeImmutable();
|
||||
|
||||
return (int) $dateOfBirth->diff($today)->y;
|
||||
return $dateOfBirth->diff($today)->y;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user