mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
make phpstan happy
This commit is contained in:
parent
a63457f069
commit
be07d9c98f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user