]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix wrong doc + type hint
authorJoas Schilling <coding@schilljs.com>
Thu, 19 Mar 2020 13:13:52 +0000 (14:13 +0100)
committerJoas Schilling <coding@schilljs.com>
Wed, 19 Aug 2020 09:20:36 +0000 (11:20 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Security/Bruteforce/Throttler.php

index 059f15e89fd24e34c74bcf8da66cf497e8980a73..1e92eeed3b21f86f4176d27a0e21d8cfdeb2e1d1 100644 (file)
@@ -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;