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
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 1 deletions

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();