Skip to content

Commit 95b4ec4

Browse files
authored
Merge pull request #5734 from kenjis/fix-csp
refactor: remove unneeded `&` references in ContentSecurityPolicy.php
2 parents 9ce15a9 + b7c26b6 commit 95b4ec4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/HTTP/ContentSecurityPolicy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public function getScriptNonce(): string
298298
*
299299
* Should be called just prior to sending the response to the user agent.
300300
*/
301-
public function finalize(ResponseInterface &$response)
301+
public function finalize(ResponseInterface $response)
302302
{
303303
if ($this->autoNonce === false) {
304304
return;
@@ -663,7 +663,7 @@ protected function addOption($options, string $target, ?bool $explicitReporting
663663
* placeholders with actual nonces, that we'll then add to our
664664
* headers.
665665
*/
666-
protected function generateNonces(ResponseInterface &$response)
666+
protected function generateNonces(ResponseInterface $response)
667667
{
668668
$body = $response->getBody();
669669

@@ -695,7 +695,7 @@ protected function generateNonces(ResponseInterface &$response)
695695
* Content-Security-Policy and Content-Security-Policy-Report-Only headers
696696
* with their values to the response object.
697697
*/
698-
protected function buildHeaders(ResponseInterface &$response)
698+
protected function buildHeaders(ResponseInterface $response)
699699
{
700700
/**
701701
* Ensure both headers are available and arrays...

0 commit comments

Comments
 (0)