Fix wrong doc + type hint
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8376c4891f
commit
dfeee3b850
|
@ -279,9 +279,9 @@ class Throttler {
|
||||||
*
|
*
|
||||||
* @param string $ip
|
* @param string $ip
|
||||||
* @param string $action
|
* @param string $action
|
||||||
* @param string $metadata
|
* @param array $metadata
|
||||||
*/
|
*/
|
||||||
public function resetDelay(string $ip, string $action, string $metadata): void {
|
public function resetDelay(string $ip, string $action, array $metadata): void {
|
||||||
$ipAddress = new IpAddress($ip);
|
$ipAddress = new IpAddress($ip);
|
||||||
if ($this->isIPWhitelisted((string)$ipAddress)) {
|
if ($this->isIPWhitelisted((string)$ipAddress)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue