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

Update QueryBuilder docblock to reflect correct type of bound parameter type #6466

Merged
merged 1 commit into from
May 23, 2017

Conversation

fmagnan
Copy link

@fmagnan fmagnan commented May 23, 2017

Hello,

thank you very much for your work, it's awesome!
I found a minor error in PHPDOC for method setParameter. Argument "type" can be a string or null but can be also an int if it comes from \PDO::PARAM_*. So I've changed typehint "string" into "mixed".

Copy link
Member

@lcobucci lcobucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmagnan thanks for your contribution! Just a small change 😄

@@ -526,7 +526,7 @@ public function getRootEntities()
*
* @param string|integer $key The parameter position or name.
* @param mixed $value The parameter value.
* @param string|null $type PDO::PARAM_* or \Doctrine\DBAL\Types\Type::* constant
* @param mixed|null $type PDO::PARAM_* or \Doctrine\DBAL\Types\Type::* constant
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use string|integer|null instead? mixed is a bit too broad

@lcobucci lcobucci self-assigned this May 23, 2017
@lcobucci lcobucci added this to the 2.6.0 milestone May 23, 2017
Copy link
Author

@fmagnan fmagnan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Hello,

thank you very much for your work, it's awesome!
I found a minor error in PHPDOC for method setParameter. Argument "type" can be a string or null but can be also an int if it comes from \PDO::PARAM_*. So I've changed typehint "string" into "mixed".
@lcobucci
Copy link
Member

@fmagnan awesome! 🚢

@lcobucci lcobucci merged commit 2a239be into doctrine:master May 23, 2017
@Ocramius Ocramius changed the title Update QueryBuilder.php Update QueryBuilder docblock to reflect correct type of bound parameter type May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants