Skip to content

Commit

Permalink
fixing phan error
Browse files Browse the repository at this point in the history
  • Loading branch information
nirajacharya2 committed Aug 14, 2024
1 parent 603f05f commit 61cf4a5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/HooksHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ class HooksHandler {
private $userNotificationConfigHandler;

public function __construct(
IConfig $config = null,
Engine $engine = null,
IHasher $hasher = null,
ITimeFactory $timeFactory = null,
IL10N $l10n = null,
PasswordExpired $passwordExpiredRule = null,
OldPasswordMapper $oldPasswordMapper = null,
ISession $session = null,
IManager $notificationManager = null,
UserNotificationConfigHandler $userNotificationConfigHandler = null
?IConfig $config = null,
?Engine $engine = null,
?IHasher $hasher = null,
?ITimeFactory $timeFactory = null,
?IL10N $l10n = null,
?PasswordExpired $passwordExpiredRule = null,
?OldPasswordMapper $oldPasswordMapper = null,
?ISession $session = null,
?IManager $notificationManager = null,
?UserNotificationConfigHandler $userNotificationConfigHandler = null
) {
$this->config = $config;
$this->engine = $engine;
Expand Down Expand Up @@ -262,7 +262,7 @@ public function savePasswordForCreatedUser(GenericEvent $event) {
/**
* Flags the session to require a password change
*/
protected function forcePasswordChange($firstLogin = null, IUser $user = null) {
protected function forcePasswordChange(?bool $firstLogin = null, ?IUser $user = null) {
if (($firstLogin === true) && ($user !== null)) {
$this->config->setUserValue($user->getUID(), 'password_policy', 'firstLoginPasswordChange', '1');
}
Expand Down

0 comments on commit 61cf4a5

Please sign in to comment.