Post #4013781
2026-07-22 14:06 UTC
@nyamsprod@phpc.social `is_int()` is probably fine.
The exception types are not quite correct, still: $seconds >= self::MAX_SECONDS must be a TimeException (overflow). $seconds = self::MAX_SECONDS, because `!is_int()` effectively means that $seconds >= self::MAX_SECONDS.
Replies (0)
No replies.