Skip to content

Commit

Permalink
Update removeNonce parameters types (#90)
Browse files Browse the repository at this point in the history
Co-authored-by: Mickael <[email protected]>
  • Loading branch information
incoming-th and Mickael authored Jan 18, 2025
1 parent c055675 commit 4ecee33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SecureHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public static function nonce(string $target = 'script'): string
*
* @return void
*/
public static function removeNonce(string $target = null, string $nonce = null)
public static function removeNonce(?string $target = null, ?string $nonce = null)
{
if ($target === null) {
self::$nonces['script'] = self::$nonces['style'] = [];
Expand Down

0 comments on commit 4ecee33

Please sign in to comment.