Skip to content

Commit

Permalink
Merge pull request #26 from ItsANameToo/patch-1
Browse files Browse the repository at this point in the history
fix: default to `null` for getRateLimitKey component
  • Loading branch information
danharrin authored May 6, 2024
2 parents bf16003 + da9b604 commit 1a1b299
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 1a1b299

Please sign in to comment.