Skip to content

Commit da9b604

Browse files
authored
chore: default to null for getRateLimitKey component
1 parent 765eb82 commit da9b604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WithRateLimiting.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ protected function clearRateLimiter($method = null, $component = null)
1818
RateLimiter::clear($key);
1919
}
2020

21-
protected function getRateLimitKey($method, $component)
21+
protected function getRateLimitKey($method, $component = null)
2222
{
2323
$method ??= debug_backtrace(limit: 2)[1]['function'];
2424

0 commit comments

Comments
 (0)