Skip to content

Commit

Permalink
Merge pull request #264 from nbayramberdiyev/cast-header-name
Browse files Browse the repository at this point in the history
Cast header name to string
  • Loading branch information
akrabat authored Nov 5, 2022
2 parents ca10cc4 + f7c1002 commit 3471c22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
Expand Down
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 3471c22

Please sign in to comment.