From be07d9c98fff5cf87664495d4e393a4910406378 Mon Sep 17 00:00:00 2001 From: michalsn Date: Fri, 15 Sep 2023 10:29:07 +0200 Subject: [PATCH] make phpstan happy --- system/Security/Security.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/Security/Security.php b/system/Security/Security.php index aeb8526cfd..4ba665639f 100644 --- a/system/Security/Security.php +++ b/system/Security/Security.php @@ -348,7 +348,9 @@ class Security implements SecurityInterface return $tokenValue; } - if ($request->hasHeader($this->config->headerName) && ! empty($request->header($this->config->headerName)->getValue())) { + if ($request->hasHeader($this->config->headerName) + && $request->header($this->config->headerName)->getValue() !== '' + && $request->header($this->config->headerName)->getValue() !== []) { return $request->header($this->config->headerName)->getValue(); }