Skip to content

Commit

Permalink
chore: default to null for getRateLimitKey component
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsANameToo authored May 6, 2024
1 parent 765eb82 commit da9b604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WithRateLimiting.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function clearRateLimiter($method = null, $component = null)
RateLimiter::clear($key);
}

protected function getRateLimitKey($method, $component)
protected function getRateLimitKey($method, $component = null)
{
$method ??= debug_backtrace(limit: 2)[1]['function'];

Expand Down

0 comments on commit da9b604

Please sign in to comment.