make phpstan happy

This commit is contained in:
michalsn 2023-09-15 10:29:07 +02:00
parent a63457f069
commit be07d9c98f
No known key found for this signature in database
GPG Key ID: 9ACAA935C3776CE9

View File

@ -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();
}