Actions
Bug #85083
closedValidation error with DateTimeImmutable
Status:
Closed
Priority:
Must have
Assignee:
Category:
Extbase
Target version:
Start date:
2018-05-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Actions