Skip to content

Commit

Permalink
[FIX] Auth: pass arguments as correct data-type.
Browse files Browse the repository at this point in the history
  • Loading branch information
thibsy authored and mjansenDatabay committed Oct 10, 2024
1 parent a90cb68 commit 07cced8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getProviders(ilAuthCredentials $credentials): array

$providers = [];
foreach ($sequence as $position => $authmode) {
$provider = $this->getProviderByAuthMode($credentials, $authmode);
$provider = $this->getProviderByAuthMode($credentials, (string) $authmode);
if ($provider instanceof ilAuthProviderInterface) {
$providers[] = $provider;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
Expand All @@ -18,6 +16,8 @@
*
*********************************************************************/

declare(strict_types=1);

/**
* @author Stefan Meyer <[email protected]>
*/
Expand Down Expand Up @@ -213,7 +213,7 @@ private function read(): void

default:
foreach (ilAuthUtils::getAuthPlugins() as $pl) {
if ($pl->isAuthActive($auth_mode)) {
if ($pl->isAuthActive((int) $auth_mode)) {
$this->position[] = $auth_mode;
}
}
Expand Down

0 comments on commit 07cced8

Please sign in to comment.