Skip to content

Commit 1537fb9

Browse files
committed
fix phpstan
1 parent 0ed105f commit 1537fb9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Middlewares/Csp.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,13 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
7575
if ($this->getConfig('script_nonce')) {
7676
$request = $request->withAttribute('cspScriptNonce', $this->csp->nonce('script-src'));
7777
}
78-
if ($this->getconfig('style_nonce')) {
78+
if ($this->getConfig('style_nonce')) {
7979
$request = $request->withAttribute('cspStyleNonce', $this->csp->nonce('style-src'));
8080
}
8181

8282
$response = $handler->handle($request);
8383

84+
/** @var ResponseInterface */
8485
return $this->csp->injectCSPHeader($response);
8586
}
8687
}

0 commit comments

Comments
 (0)