Skip to content

QueryBuilder must use 0-based positional parameter keys #4422

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

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

morozov
Copy link
Member

@morozov morozov commented Nov 11, 2020

Q A
Type bug
BC Break no

Fixes #4421.

Although this bug exists in 2.x, I don't think we have to fix it in a patch release. It's sufficient to fix it in 3.0.x.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
marandaneto Manoel Aranda Neto
@morozov morozov added this to the 3.0.0 milestone Nov 11, 2020
@morozov morozov linked an issue Nov 11, 2020 that may be closed by this pull request
@morozov morozov requested a review from greg0ire November 11, 2020 16:15
Copy link
Member

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

Should the phpdoc of getParameters be changed to use list then?

@morozov
Copy link
Member Author

morozov commented Nov 11, 2020

No, because those can be named parameters as well or even a mix which is not allowed by the documentation but not enforced programmatically.

@morozov morozov merged commit 3b90aba into doctrine:3.0.x Nov 11, 2020
@morozov morozov deleted the issues/4421 branch November 12, 2020 02:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QueryBuilder uses 1-based positional parameter keys
3 participants