Skip to content

Commit

Permalink
test(php83) rework reflection to avoid php83 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmhh committed Aug 9, 2024
1 parent 01fdc1a commit 0b61197
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tine20/SSO/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,8 @@ protected static function getOpenIdConnectServer(): \League\OAuth2\Server\Author

protected static function initSAMLServer()
{
$sessionReflection = new ReflectionProperty(\SimpleSAML\Session::class, 'instance');
$sessionReflection->setAccessible(true);
$sessionReflection->setValue(new SSO_Facade_SAML_Session());
(new ReflectionProperty(\SimpleSAML\Session::class, 'instance'))->setAccessible(true);
(new ReflectionClass(\SimpleSAML\Session::class))->setStaticPropertyValue('instance', new SSO_Facade_SAML_Session());

$saml2Config = SSO_Config::getInstance()->{SSO_Config::SAML2};

Expand Down

0 comments on commit 0b61197

Please sign in to comment.