Project

General

Profile

Actions

Bug #85083

closed

Validation error with DateTimeImmutable

Added by Mathias Brodala almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
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

Also available in: Atom PDF