Skip to content

Conversation

@marcstraube
Copy link
Contributor

The ability to use Assert\Date to validate DateTime objects was deprecated on Symfony 4.2, and on Symfony 5.0 it was removed altogether: symfony/symfony@a052378

…imeInterface) for compatibility with Symfony 5.
@marcstraube marcstraube changed the title Update assertion constraint for Date, DateTime and Time to Type(DateTimeInterface) for compatibility with Symfony 5. fix: Update assertion constraint for Date, DateTime and Time to Type(DateTimeInterface) for compatibility with Symfony 5. Jul 7, 2021
@dunglas dunglas merged commit fddeccc into api-platform:master Jul 7, 2021
@dunglas
Copy link
Member

dunglas commented Jul 7, 2021

Good catch, thanks!

@marcstraube
Copy link
Contributor Author

I'm not 100% sure, but this is possibly related: #154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants