userhelper: fix optional parameter being declared before a required one

This commit is contained in:
Andrew Dolgov
2022-06-13 08:37:39 +03:00
parent d4be821825
commit c2f7044485

View File

@@ -494,7 +494,7 @@ class UserHelper {
* @param string $password password to compare hash against * @param string $password password to compare hash against
* @return bool * @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) { if ($owner_uid) {
$authenticator = new Auth_Internal(); $authenticator = new Auth_Internal();