Commit fcd4661
committed
bug #867 Fixed the DateTime constraint deprecation (javiereguiluz)
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 deprecation2 files changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
0 commit comments