Skip to content

Commit

Permalink
Cast header name to string
Browse files Browse the repository at this point in the history
  • Loading branch information
nbayramberdiyev committed Jul 11, 2022
1 parent ca10cc4 commit db965e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ protected function parseAuthorizationHeader(array $headers): array
{
$hasAuthorizationHeader = false;
foreach ($headers as $name => $value) {
if (strtolower($name) === 'authorization') {
if (strtolower((string) $name) === 'authorization') {
$hasAuthorizationHeader = true;
break;
}
Expand Down

0 comments on commit db965e1

Please sign in to comment.