minor #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
-------
94198876d0
[Mime] Removed unnecessary strtolower
This commit is contained in:
commit
c34f8a9b6b
@ -168,7 +168,7 @@ final class Headers
|
||||
public function get(string $name): ?HeaderInterface
|
||||
{
|
||||
$name = strtolower($name);
|
||||
if (!isset($this->headers[strtolower($name)])) {
|
||||
if (!isset($this->headers[$name])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user