Skip to content

Commit d0a3d7c

Browse files
authored
Restore nullable assocId for SLO (#1787)
* Restore nullable assocId for SLO * Fix namespace * Add changelog note * Fix changelog
1 parent 8115f25 commit d0a3d7c

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/simplesamlphp-changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See the upgrade notes for specific information about upgrading.
1010
Released 2023-03-10
1111

1212
* The language-menu on mobile devices was fixed
13-
* Fix some issues with logout (#1780, #1785)
13+
* Fix some issues with logout (#1776, #1780, #1785)
1414
* The `loginpage_links` functionality for authsources was restored and documented (#1770, #1773)
1515
* Several issues regarding the use of the back-button were fixed (#1720)
1616
* Many fixes in documentation

src/SimpleSAML/IdP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function getLogoutHandler(): LogoutHandlerInterface
437437
throw new Error\Exception('Unknown logout handler: ' . var_export($logouttype, true));
438438
}
439439

440-
/** @var IdP\LogoutHandlerInterface */
440+
/** @var \SimpleSAML\IdP\LogoutHandlerInterface */
441441
return new $handler($this);
442442
}
443443

src/SimpleSAML/IdP/LogoutHandlerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public function __construct(IdP $idp);
2929
* This function must never return.
3030
*
3131
* @param array &$state The logout state.
32-
* @param string $assocId The association that started the logout.
32+
* @param string|null $assocId The association that started the logout.
3333
*/
34-
public function startLogout(array &$state, string $assocId): void;
34+
public function startLogout(array &$state, ?string $assocId): void;
3535

3636

3737
/**

src/SimpleSAML/IdP/TraditionalLogoutHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ private function logoutNextSP(array &$state): void
8080
* This function never returns.
8181
*
8282
* @param array &$state The logout state.
83-
* @param string $assocId The association that started the logout.
83+
* @param string|null $assocId The association that started the logout.
8484
*/
85-
public function startLogout(array &$state, string $assocId): void
85+
public function startLogout(array &$state, /** @scrutinizer ignore-unused */?string $assocId): void
8686
{
8787
$state['core:LogoutTraditional:Remaining'] = $this->idp->getAssociations();
8888

0 commit comments

Comments
 (0)