mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Could not convert PHP value of type 'DateTimeImmutable' to type 'datetime' #4995
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bazo on GitHub (Jan 28, 2016).
Originally assigned to: @Ocramius on GitHub.
hi,
i've been using DateTimeImmutable for some time now as parameters to query builder queries, dql queries and also in entity values
in one project there's a code more than a year old that uses DateTimeImmutable and it worked all the time.
but after some update of doctrine in the past few days this error started popping up
Could not convert PHP value of type 'DateTimeImmutable' to type 'datetime'. Expected one of the following types: null, DateTime
i remember this was in issue when php 5.5 was new, so this seems like regression to me
@bazo commented on GitHub (Jan 28, 2016):
stable 2.5.4 does not have this bug
@Jean85 commented on GitHub (Feb 8, 2016):
Which version where you using when reproducing the bug?
@Ocramius commented on GitHub (Feb 8, 2016):
Since it doesn't concern the current stable version, closing as
invalid@teohhanhui commented on GitHub (Jun 23, 2016):
@Ocramius You forgot to close this... 😄
@Ocramius commented on GitHub (Jul 5, 2016):
@teohhanhui don't drink and review! 🍻 Thanks for the ping :)