mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Type error in getMaxResults, string returned instead of ?int #6850
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 @YetiCGN on GitHub (Oct 5, 2021).
Bug Report
Summary
After updating from 2.9.6 to 2.10.0 we are getting type errors from Doctrine\ORM\Query,
Current behavior
Execute certain queries and
getMaxResults()fails with:Downgrading to 2.9.6 gets rid of this problem. I don't know if all queries are affected or only some. Somewhere the
maxResultsclass property is set to a string when it should always be a (nullable) integer.How to reproduce
Install version 2.10.0 and run app or tests with a database query that retrieves maxResults.
@derrabus commented on GitHub (Oct 5, 2021):
Duplicate of #9086
@YetiCGN commented on GitHub (Oct 5, 2021):
Only searched through open tickets, that's why I didn't find the existing ticket. Sorry!