Fix wrong doc + type hint

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-03-19 14:13:52 +01:00
parent 8376c4891f
commit dfeee3b850
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 2 additions and 2 deletions

View File

@ -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;