userhelper: add a phpdoc variable class hint

This commit is contained in:
Andrew Dolgov 2021-11-14 18:02:20 +03:00
parent 01b39d985c
commit 1b5c61ac85
1 changed files with 2 additions and 0 deletions

View File

@ -334,6 +334,8 @@ class UserHelper {
}
static function is_default_password(): bool {
/** @var Auth_Internal|false $authenticator -- this is only here to make check_password() visible to static analyzer */
$authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]);
if ($authenticator &&