Skip to content

Commit 30fb902

Browse files
authored
Fix return type for resetAttempts method in RateLimiter (#56596)
1 parent 74a2aea commit 30fb902

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Cache/RateLimiter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function attempts($key)
210210
* Reset the number of attempts for the given key.
211211
*
212212
* @param string $key
213-
* @return mixed
213+
* @return bool
214214
*/
215215
public function resetAttempts($key)
216216
{

src/Illuminate/Support/Facades/RateLimiter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @method static int increment(string $key, \DateTimeInterface|\DateInterval|int $decaySeconds = 60, int $amount = 1)
1212
* @method static int decrement(string $key, \DateTimeInterface|\DateInterval|int $decaySeconds = 60, int $amount = 1)
1313
* @method static mixed attempts(string $key)
14-
* @method static mixed resetAttempts(string $key)
14+
* @method static bool resetAttempts(string $key)
1515
* @method static int remaining(string $key, int $maxAttempts)
1616
* @method static int retriesLeft(string $key, int $maxAttempts)
1717
* @method static void clear(string $key)

0 commit comments

Comments
 (0)