diff --git a/src/WithRateLimiting.php b/src/WithRateLimiting.php index 400c3ff..d86b050 100644 --- a/src/WithRateLimiting.php +++ b/src/WithRateLimiting.php @@ -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'];