mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
PHPStan: Fix level 4 errors
This commit is contained in:
@@ -61,6 +61,7 @@ function check_invalid_login() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
/** @var array{int, int} */
|
||||
$invalid = idx($invalids, $adminer->bruteForceKey(), array());
|
||||
$next_attempt = ($invalid[1] > 29 ? $invalid[0] - time() : 0); // allow 30 invalid attempts
|
||||
if ($next_attempt > 0) { //! do the same with permanent login
|
||||
|
Reference in New Issue
Block a user