Skip to content

Fixed the DateTime constraint deprecation #867

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

Merged
merged 1 commit into from
Oct 5, 2018
Merged

Fixed the DateTime constraint deprecation #867

merged 1 commit into from
Oct 5, 2018

Conversation

javiereguiluz
Copy link
Member

This is a deprecation introduced by the upgrade to Symfony 4.2 in #865.

3x: Validating a \DateTimeInterface with "Symfony\Component\Validator\Constraints\DateTime" is deprecated since version 4.2. Use "Symfony\Component\Validator\Constraints\Type" instead or remove the constraint if the underlying model is already type hinted to \DateTimeInterface.
    1x in BlogControllerTest::testAdminNewPost from App\Tests\Controller\Admin
    1x in BlogControllerTest::testAdminEditPost from App\Tests\Controller\Admin
    1x in BlogControllerTest::testNewComment from App\Tests\Controller

@javiereguiluz javiereguiluz merged commit aec924a into symfony:master Oct 5, 2018
javiereguiluz added a commit that referenced this pull request Oct 5, 2018
This PR was merged into the master branch.

Discussion
----------

Fixed the DateTime constraint deprecation

This is a deprecation introduced by the upgrade to Symfony 4.2 in #865.

```
3x: Validating a \DateTimeInterface with "Symfony\Component\Validator\Constraints\DateTime" is deprecated since version 4.2. Use "Symfony\Component\Validator\Constraints\Type" instead or remove the constraint if the underlying model is already type hinted to \DateTimeInterface.
    1x in BlogControllerTest::testAdminNewPost from App\Tests\Controller\Admin
    1x in BlogControllerTest::testAdminEditPost from App\Tests\Controller\Admin
    1x in BlogControllerTest::testNewComment from App\Tests\Controller
```

Commits
-------

aec924a Fixed the DateTime constraint deprecation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants