This fix modifies the ORM type of properties created and updated on all entitites that use TimestampAwareTrait.
Their ORM type changes from datetime to datetime_immutable.
To avoid return type conflicts, Doctrine's entity cache must be emptied after applying this fix.
Also, make sure you check if your code expects these properties to return an instance of DateTime and change those to DateTimeImmutable.
NOTE:
This fix modifies the ORM type of properties
created
andupdated
on all entitites thatuse TimestampAwareTrait
. Their ORM type changes fromdatetime
todatetime_immutable
. To avoid return type conflicts, Doctrine's entity cache must be emptied after applying this fix.Also, make sure you check if your code expects these properties to return an instance of
DateTime
and change those toDateTimeImmutable
.