Jira issue originally created by user @guilhermeblanco:
Here is the patch:
Comment created by @beberlei:
instanceof DateTimeZone is just wrong. drop that whole branch, TZ only saves the timezone from a DateTime object, infering TYPE::DECIMAL sounds dangerous to me, i would drop that one aswell. The array check has a bug, you call key() and then do nothing with the $key instaed check is_integer on the $value again, which is always an array from the previous check.
I thought you wanted to infer the types from the left hand sides of the DQL conditions?
Comment created by @guilhermeblanco:
Issue was closed with resolution "Fixed"