From c2f70444854bcb3ab540d495e57e88460cfee842 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Jun 2022 08:37:39 +0300 Subject: userhelper: fix optional parameter being declared before a required one --- classes/userhelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/userhelper.php') diff --git a/classes/userhelper.php b/classes/userhelper.php index 7008bf62c..228bb14fb 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(); -- cgit v1.2.3