Bug #85083
closedValidation error with DateTimeImmutable
100%
Description
Having an object property typed as \DateTimeImmutable
yields a validation error when using that object as Extbase controller argument:
The given subject was not a valid DateTime. Got: 'object'
This is caused by the DateTimeValidator
which only checks for DateTime
but not DateTimeImmutable
. This should be changed to DateTimeInterface
to cover both.
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57054
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57054
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57058
Updated by Mathias Brodala over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 92d0783fa266373c286b2459169ba56aabb31c36.