From 1b5c61ac85f1fbc7b437ba018f1acad08553bdeb Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Sun, 14 Nov 2021 18:02:20 +0300
Subject: [PATCH] userhelper: add a phpdoc variable class hint

---
 classes/userhelper.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/classes/userhelper.php b/classes/userhelper.php
index c09cabb12..0217a8927 100644
--- a/classes/userhelper.php
+++ b/classes/userhelper.php
@@ -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 &&
-- 
GitLab