mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Wrong return type of getResult() #5214
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 @giginos on GitHub (Aug 12, 2016).
Originally assigned to: @Ocramius on GitHub.
Hi Folks,
i've found a wrong return type in a core method.
Should be fixed to improve work with IDEs.
Affected file: https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/AbstractQuery.php
Affected method:
public function getResult($hydrationMode = self::HYDRATE_OBJECT)
To be changed:
The tag "@return array" should be set to "@return mixed" or something suitable.
Regards,
Rafael
@Ocramius commented on GitHub (Aug 12, 2016):
@giginos you can edit https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/AbstractQuery.php and send the change back to us directly :-)
@Ocramius commented on GitHub (Sep 7, 2016):
Handled in #5972