Skip to content

Commit be07d9c

Browse files
committed
make phpstan happy
1 parent a63457f commit be07d9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/Security/Security.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,9 @@ private function getPostedToken(RequestInterface $request): ?string
348348
return $tokenValue;
349349
}
350350

351-
if ($request->hasHeader($this->config->headerName) && ! empty($request->header($this->config->headerName)->getValue())) {
351+
if ($request->hasHeader($this->config->headerName)
352+
&& $request->header($this->config->headerName)->getValue() !== ''
353+
&& $request->header($this->config->headerName)->getValue() !== []) {
352354
return $request->header($this->config->headerName)->getValue();
353355
}
354356

0 commit comments

Comments
 (0)