Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update assertion constraint for Date, DateTime and Time to Type(DateTimeInterface) for compatibility with Symfony 5. #334

Merged
merged 1 commit into from Jul 7, 2021

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants