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

Ignore case when matching ARRAY #3226

Conversation

ohvitorino
Copy link

Q A
Type bug
BC Break no
Fixed issues

Summary

Named parameters get lost because the regular expression used to determine the query fragments only match the keyword ARRAY (capital letters). This should be made case insensitive since this is also correct syntax.

@Ocramius
Copy link
Member

Is this fixing #3140?

@Ocramius
Copy link
Member

@ohvitorino please target DBAL master: we will arrange backporting ourselves after having evaluated/merged the patch.

@ohvitorino ohvitorino changed the base branch from 2.5 to master July 24, 2018 05:24
@ohvitorino ohvitorino force-pushed the fix-lost-parameters-wrong-ESCAPED_BRACKET_QUOTED_TEXT branch from 75a5224 to 874eff3 Compare July 24, 2018 05:54
@ohvitorino
Copy link
Author

@Ocramius I changed the target to master. And unfortunately this doesn't seem to fix #3140.

Ocramius
Ocramius previously approved these changes Jul 24, 2018
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM 👍

morozov
morozov previously approved these changes Jul 24, 2018
@morozov
Copy link
Member

morozov commented Jul 24, 2018

@ohvitorino please fix the code style issues before I can merge it.

@ohvitorino
Copy link
Author

@morozov the php code sniffer configuration being used expects, for example, short array syntax. But the whole file uses the array() syntax, should I then change the whole file or only the lines I changed in my PR? Changing only a couple of statements to comply with the expected code style seems a bit inconsistent.

@Ocramius
Copy link
Member

Ocramius commented Aug 8, 2018 via email

@ohvitorino ohvitorino dismissed stale reviews from morozov and Ocramius via 50ac3bc September 1, 2018 15:35
@ohvitorino
Copy link
Author

@morozov Code styles are fixed 🙂

@morozov
Copy link
Member

morozov commented Sep 1, 2018

@ohvitorino thank you. Please, also squash. We don't squash commits ourselves anymore.

@ohvitorino ohvitorino force-pushed the fix-lost-parameters-wrong-ESCAPED_BRACKET_QUOTED_TEXT branch from af60eb5 to 5682b66 Compare September 1, 2018 20:29
@ohvitorino
Copy link
Author

@morozov done and building

@morozov morozov merged commit 41f437a into doctrine:master Sep 1, 2018
@morozov
Copy link
Member

morozov commented Sep 1, 2018

Thank you, @ohvitorino! Merged.

@morozov
Copy link
Member

morozov commented Sep 1, 2018

Backported to 2.8 via 7d9f7d0.

wizhippo pushed a commit to wizhippo/doctrine-dbal that referenced this pull request Nov 1, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 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.

3 participants