Skip to content

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