diff --git a/classes/userhelper.php b/classes/userhelper.php
index 7008bf62c48411fa9c2d9df38b8a1032f4f3e928..228bb14fba4b0a47685fb7419cdaaab96d75fe85 100644
--- a/classes/userhelper.php
+++ b/classes/userhelper.php
@@ -494,7 +494,7 @@ class UserHelper {
 	 * @param string $password password to compare hash against
 	 * @return bool
 	 */
-	static function user_has_password(?int $owner_uid = null, string $password) : bool {
+	static function user_has_password(?int $owner_uid, string $password) : bool {
 		if ($owner_uid) {
 			$authenticator = new Auth_Internal();