Closed HeyRatFans closed 2 years ago
Changes made as suggested by @driehle. For targeting 2.2.x, I'm assuming someone will create such a branch.
@TomHAnderson Could you please create a 2.2.x branch?
@HeyRatFans Could you please fix the two coding standard issues that were raised by Github actions?
Further, your code added to DoctrineObjectTest.php
doesn't do anything. Your method configureObjectManagerForSimpleEntityWithDateTimeImmutable()
sets up an object manager that is not used anywhere. Besides, the type conversions are all tested in a separate file, see DoctrineObjectTypeConversionsTest.php
.
Could you please undo your changes in DoctrineObjectTest.php
and in DoctrineObjectTypeConversionsTest.php
copy the methods testHandleTypeConversionsDatetime()
and testHandleTypeConversionsDatetimez()
to respective variants using DateTimeImmutable
? For mocking the object manager you can use $this->configureObjectManagerForSimpleEntityWithGenericField('datetime_immutable');
, i.e. no need to create an entity asset.
I added test cases, but there is still a Psalm issue. I will look into this.
This PR adds support for the doctrine
datetime_immutable
anddatetimetz_immutable
types.