From db965e1d5bff849f81006b36ad0b432934be0a2c Mon Sep 17 00:00:00 2001 From: N'Bayramberdiyev Date: Thu, 5 May 2022 23:53:40 +0300 Subject: [PATCH 1/2] Cast header name to string --- src/Headers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Headers.php b/src/Headers.php index c024886..038e792 100644 --- a/src/Headers.php +++ b/src/Headers.php @@ -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; } From f7c10022a23ac53672b6a052f1b036091011c123 Mon Sep 17 00:00:00 2001 From: N'Bayramberdiyev Date: Fri, 6 May 2022 00:03:05 +0300 Subject: [PATCH 2/2] Upgrade `actions/checkout` --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5a786b1..30df493 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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