From db965e1d5bff849f81006b36ad0b432934be0a2c Mon Sep 17 00:00:00 2001 From: N'Bayramberdiyev Date: Thu, 5 May 2022 23:53:40 +0300 Subject: [PATCH] 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; }