mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Bad PHPDocBlock AbstractQuery::getSingleScalarResult() #6291
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 @danielspk on GitHub (Sep 4, 2019).
Hi, the DocBlock of the getSingleScalarResult() method of the AbstractQuery class is incomplete.
In addition to NonUniqueResultException it can also return NoResultException.
This causes phpstan to generate an alert about null returns that can never really occur since the expected behavior is an exception of the NoResultException type.
Greetings.
@sad270 commented on GitHub (Sep 4, 2019):
It's fixed on master branch :
https://github.com/doctrine/orm/blob/master/lib/Doctrine/ORM/AbstractQuery.php#L781
But it is not release yet.
@SenseException commented on GitHub (Sep 9, 2019):
@danielspk If is okay for you that is was fixed on
master, please close this issue.