From dfeee3b85095c86f9077d00129d8717781f65c99 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 19 Mar 2020 14:13:52 +0100 Subject: [PATCH] Fix wrong doc + type hint Signed-off-by: Joas Schilling --- lib/private/Security/Bruteforce/Throttler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Security/Bruteforce/Throttler.php b/lib/private/Security/Bruteforce/Throttler.php index 059f15e89fd..1e92eeed3b2 100644 --- a/lib/private/Security/Bruteforce/Throttler.php +++ b/lib/private/Security/Bruteforce/Throttler.php @@ -279,9 +279,9 @@ class Throttler { * * @param string $ip * @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); if ($this->isIPWhitelisted((string)$ipAddress)) { return; -- 2.39.5