Skip to content

Commit 69431d6

Browse files
committed
bug #14393 [RateLimiter] Minor fix (javiereguiluz)
This PR was merged into the 5.x branch. Discussion ---------- [RateLimiter] Minor fix Commits ------- 8eccfea [RateLimiter] Minor fixes
2 parents c83fb47 + 8eccfea commit 69431d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rate_limiter.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ the number of requests to the API::
119119

120120
// the argument of consume() is the number of tokens to consume
121121
// and returns an object of type Limit
122-
if (false === $anonymous_api_limiter->consume(1)->isAccepted()) {
122+
if (false === $limiter->consume(1)->isAccepted()) {
123123
throw new TooManyRequestsHttpException();
124124
}
125125

0 commit comments

Comments
 (0)