Skip to content

Commit d6a1289

Browse files
minor symfony#23797 Don't force lowercase for hasher values (javiereguiluz)
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 symfony#23766. Commits ------- 156cb70 [DI] Don't force lowercase for hasher values
2 parents c8d7a6f + 156cb70 commit d6a1289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ public static function hash($value)
13281328
{
13291329
$hash = substr(base64_encode(hash('sha256', serialize($value), true)), 0, 7);
13301330

1331-
return str_replace(array('/', '+'), array('.', '_'), strtolower($hash));
1331+
return str_replace(array('/', '+'), array('.', '_'), $hash);
13321332
}
13331333

13341334
/**

0 commit comments

Comments
 (0)