Skip to content

Commit

Permalink
Mark arguments as nullable in AddCspHeaders (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij authored Sep 20, 2024
1 parent a5ff087 commit ea7d285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AddCspHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class AddCspHeaders
{
public function handle(Request $request, Closure $next, string $customPolicyClass = null)
public function handle(Request $request, Closure $next, ?string $customPolicyClass = null)
{
$response = $next($request);

Expand All @@ -20,7 +20,7 @@ public function handle(Request $request, Closure $next, string $customPolicyClas
return $response;
}

protected function getPolicies(string $customPolicyClass = null): Collection
protected function getPolicies(?string $customPolicyClass = null): Collection
{
$policies = collect();

Expand Down

0 comments on commit ea7d285

Please sign in to comment.