Wrong return type of getResult() #5214

Closed
opened 2026-01-22 15:01:45 +01:00 by admin · 2 comments
Owner

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

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
admin added the Documentation label 2026-01-22 15:01:45 +01:00
admin closed this issue 2026-01-22 15:01:46 +01:00
Author
Owner

@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 (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 :-)
Author
Owner

@Ocramius commented on GitHub (Sep 7, 2016):

Handled in #5972

@Ocramius commented on GitHub (Sep 7, 2016): Handled in #5972
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5214