PHPStan Level 7 for Minz_Request, FreshRSS_Feed, Minz_Error (#5400)

* PHPStan Level 7 for Minz_Request

* PHPStan Level 7 for FreshRSS_Feed

* PHPStan Level 7 for Minz_Error
This commit is contained in:
Alexandre Alapetite
2023-05-15 19:26:48 +02:00
committed by GitHub
parent c8d2ead763
commit 2038d50110
10 changed files with 76 additions and 95 deletions

View File

@@ -126,13 +126,13 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController {
if (FreshRSS_Context::$user_conf == null) {
// Initialise the default user to be able to display the error page
FreshRSS_Context::initUser(FreshRSS_Context::$system_conf->default_user);
Minz_Error::error(403, array(_t('feedback.auth.login.invalid')), false);
Minz_Error::error(403, _t('feedback.auth.login.invalid'), false);
return;
}
if (!FreshRSS_Context::$user_conf->enabled || FreshRSS_Context::$user_conf->passwordHash == '') {
usleep(random_int(100, 5000)); //Primitive mitigation of timing attacks, in μs
Minz_Error::error(403, array(_t('feedback.auth.login.invalid')), false);
Minz_Error::error(403, _t('feedback.auth.login.invalid'), false);
return;
}