Skip to content

Commit f4468c1

Browse files
authored
Improves limit's key type (#43836)
1 parent e634384 commit f4468c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Cache/RateLimiting/Limit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Limit
77
/**
88
* The rate limit signature key.
99
*
10-
* @var mixed|string
10+
* @var mixed
1111
*/
1212
public $key;
1313

@@ -35,7 +35,7 @@ class Limit
3535
/**
3636
* Create a new limit instance.
3737
*
38-
* @param mixed|string $key
38+
* @param mixed $key
3939
* @param int $maxAttempts
4040
* @param int $decayMinutes
4141
* @return void
@@ -107,7 +107,7 @@ public static function none()
107107
/**
108108
* Set the key of the rate limit.
109109
*
110-
* @param string $key
110+
* @param mixed $key
111111
* @return $this
112112
*/
113113
public function by($key)

0 commit comments

Comments
 (0)