Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix return type for resetAttempts method in RateLimiter
  • Loading branch information
jonagoldman committed Aug 8, 2025
commit 6fc4a7c6bc0fbfb2714b7536bea07ade6f0a2c9f
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/RateLimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function attempts($key)
* Reset the number of attempts for the given key.
*
* @param string $key
* @return mixed
* @return bool
*/
public function resetAttempts($key)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/RateLimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @method static int increment(string $key, \DateTimeInterface|\DateInterval|int $decaySeconds = 60, int $amount = 1)
* @method static int decrement(string $key, \DateTimeInterface|\DateInterval|int $decaySeconds = 60, int $amount = 1)
* @method static mixed attempts(string $key)
* @method static mixed resetAttempts(string $key)
* @method static bool resetAttempts(string $key)
* @method static int remaining(string $key, int $maxAttempts)
* @method static int retriesLeft(string $key, int $maxAttempts)
* @method static void clear(string $key)
Expand Down