Skip to content

Commit 4ecee33

Browse files
incoming-thMickael
and
Mickael
authored
Update removeNonce parameters types (#90)
Co-authored-by: Mickael <[email protected]>
1 parent c055675 commit 4ecee33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SecureHeaders.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public static function nonce(string $target = 'script'): string
317317
*
318318
* @return void
319319
*/
320-
public static function removeNonce(string $target = null, string $nonce = null)
320+
public static function removeNonce(?string $target = null, ?string $nonce = null)
321321
{
322322
if ($target === null) {
323323
self::$nonces['script'] = self::$nonces['style'] = [];

0 commit comments

Comments
 (0)