Skip to content

Don't force lowercase for hasher values #23797

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
Aug 22, 2017

Conversation

javiereguiluz
Copy link
Member

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

In Symfony 4.x we no longer modify the service ids to lowercase them, so this PR tweaks the hasher introduced in #23766.

@nicolas-grekas
Copy link
Member

To make tests pass for deps=low/high lines, they should compare lowercased values.

@nicolas-grekas
Copy link
Member

@Simperfit look at tests before approving ;)

@Simperfit
Copy link
Contributor

Simperfit commented Aug 6, 2017 via email

@nicolas-grekas nicolas-grekas added this to the 4.0 milestone Aug 6, 2017
@nicolas-grekas
Copy link
Member

@javiereguiluz you need to patch 3.4 so that the test is case insensitive. Then there will be no need to patch tests here, only remove the strtolower call.

chalasr pushed a commit that referenced this pull request Aug 14, 2017
…re for future Symfony versions (javiereguiluz)

This PR was squashed before being merged into the 3.4 branch (closes #23852).

Discussion
----------

Made some SecurityBundle tests case-insensitive to prepare for future Symfony versions

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This is what @nicolas-grekas [told me to do](#23797 (comment)) to unlock #23797.

Commits
-------

9b7750a Made some SecurityBundle tests case-insensitive to prepare for future Symfony versions
@nicolas-grekas
Copy link
Member

ready for a rebase

@nicolas-grekas
Copy link
Member

Thank you @javiereguiluz.

@nicolas-grekas nicolas-grekas merged commit 156cb70 into symfony:master Aug 22, 2017
nicolas-grekas added a commit that referenced this pull request Aug 22, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

Don't force lowercase for hasher values

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

In Symfony 4.x we no longer modify the service ids to lowercase them, so this PR tweaks the hasher introduced in #23766.

Commits
-------

156cb70 [DI] Don't force lowercase for hasher values
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.

4 participants