Skip to content

Commit

Permalink
Init: Use explicit nullable types
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay committed Jan 29, 2025
1 parent 814cd32 commit 28744ba
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private function getAssistanceForm(): ILIAS\UI\Component\Input\Container\Form\Fo
->withAdditionalTransformation($this->saniziteArrayElementsTrafo());
}

private function showAssistanceForm(ILIAS\UI\Component\Input\Container\Form\Form $form = null): void
private function showAssistanceForm(?ILIAS\UI\Component\Input\Container\Form\Form $form = null): void
{
$this->help->setSubScreenId('password_assistance');

Expand Down Expand Up @@ -435,7 +435,7 @@ private function sendPasswordAssistanceMail(ilObjUser $userObj): void
$mm->Send();
}

private function getAssignPasswordForm(string $pwassist_id = null): ILIAS\UI\Component\Input\Container\Form\Form
private function getAssignPasswordForm(?string $pwassist_id = null): ILIAS\UI\Component\Input\Container\Form\Form
{
$field_factory = $this->ui_factory->input()->field();

Expand Down Expand Up @@ -517,7 +517,7 @@ static function (ILIAS\Data\Password $value): string {
* password assistance form will be shown instead of this form.
*/
private function showAssignPasswordForm(
ILIAS\UI\Component\Input\Container\Form\Form $form = null,
?ILIAS\UI\Component\Input\Container\Form\Form $form = null,
string $pwassist_id = ''
): void {
$this->help->setSubScreenId('password_input');
Expand Down Expand Up @@ -709,7 +709,7 @@ private function getUsernameAssistanceForm(): ILIAS\UI\Component\Input\Container
->withAdditionalTransformation($this->saniziteArrayElementsTrafo());
}

private function showUsernameAssistanceForm(ILIAS\UI\Component\Input\Container\Form\Form $form = null): void
private function showUsernameAssistanceForm(?ILIAS\UI\Component\Input\Container\Form\Form $form = null): void
{
$this->help->setSubScreenId('username_assistance');

Expand Down

0 comments on commit 28744ba

Please sign in to comment.