The ::date_after, ::date_immutable etc validators are designed to be used with a data array that already contains either DateTimeImmutable or our placeholder InvalidUserDateTime objects. This worked for a while but is a problematic data / logic structure - deprecate in favour of deciding whether your app is going to validate input as strings or as datetimes.
The ::date_after, ::date_immutable etc validators are designed to be used with a data array that already contains either DateTimeImmutable or our placeholder InvalidUserDateTime objects. This worked for a while but is a problematic data / logic structure - deprecate in favour of deciding whether your app is going to validate input as strings or as datetimes.