Skip to content

Commit c34f8a9

Browse files
committed
minor symfony#30681 [Mime] Removed unnecessary strtolower function call (scuben)
This PR was merged into the 4.3-dev branch. Discussion ---------- [Mime] Removed unnecessary strtolower function call | Q | A | ------------- | --- | Branch? | master <!-- see below --> | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | License | MIT Commits ------- 9419887 [Mime] Removed unnecessary strtolower
2 parents 47a2f58 + 9419887 commit c34f8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mime/Header/Headers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function add(HeaderInterface $header)
168168
public function get(string $name): ?HeaderInterface
169169
{
170170
$name = strtolower($name);
171-
if (!isset($this->headers[strtolower($name)])) {
171+
if (!isset($this->headers[$name])) {
172172
return null;
173173
}
174174

0 commit comments

Comments
 (0)