Skip to content

Commit 8906168

Browse files
committed
fix RequestRateLimiterInterface::reset()
1 parent 7e9ec60 commit 8906168

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RateLimiter/AbstractRequestRateLimiter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function consume(Request $request): Limit
4545
return $minimalLimit;
4646
}
4747

48-
public function reset(): void
48+
public function reset(Request $request): void
4949
{
5050
foreach ($this->getLimiters($request) as $limiter) {
5151
$limiter->reset();

RateLimiter/RequestRateLimiterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ interface RequestRateLimiterInterface
2828
{
2929
public function consume(Request $request): Limit;
3030

31-
public function reset(): void;
31+
public function reset(Request $request): void;
3232
}

0 commit comments

Comments
 (0)