Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong return type of getResult() #5971

Closed
giginos opened this issue Aug 12, 2016 · 2 comments
Closed

Wrong return type of getResult() #5971

giginos opened this issue Aug 12, 2016 · 2 comments
Assignees
Milestone

Comments

@giginos
Copy link
Contributor

giginos commented Aug 12, 2016

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
Copy link
Member

@giginos you can edit https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/AbstractQuery.php and send the change back to us directly :-)

giginos added a commit to giginos/doctrine2 that referenced this issue Aug 12, 2016
@Ocramius Ocramius added this to the 2.6.0 milestone Sep 7, 2016
@Ocramius Ocramius self-assigned this Sep 7, 2016
@Ocramius
Copy link
Member

Ocramius commented Sep 7, 2016

Handled in #5972

@Ocramius Ocramius closed this as completed Sep 7, 2016
yvoyer pushed a commit to yvoyer/doctrine2 that referenced this issue Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants