diff --git a/lib/SimpleSAML/SessionHandlerPHP.php b/lib/SimpleSAML/SessionHandlerPHP.php index ca947bdb2e99c253c6e239b0045cc84aecb22b00..1f6b22f8f0624c336e2aee52f88c6656647e1c5a 100644 --- a/lib/SimpleSAML/SessionHandlerPHP.php +++ b/lib/SimpleSAML/SessionHandlerPHP.php @@ -50,7 +50,7 @@ class SessionHandlerPHP extends SessionHandler $config = Configuration::getInstance(); $this->cookie_name = $config->getString( 'session.phpsession.cookiename', - ini_get('session.name') ?? 'PHPSESSID' + ini_get('session.name') ?: 'PHPSESSID' ); if (session_status() === PHP_SESSION_ACTIVE) { diff --git a/tests/lib/SimpleSAML/Utils/CryptoTest.php b/tests/lib/SimpleSAML/Utils/CryptoTest.php index cdf10416227d5112523c08b755b9227a63606a67..a30917a2258f2c09d4b714939f313128388ceb9a 100644 --- a/tests/lib/SimpleSAML/Utils/CryptoTest.php +++ b/tests/lib/SimpleSAML/Utils/CryptoTest.php @@ -33,6 +33,9 @@ class CryptoTest extends TestCase /** @var string */ protected string $certdir; + /** @var \SimpleSAML\Configuration */ + protected Configuration $config; + /** @var \SimpleSAML\Utils\Crypto */ protected $cryptoUtils;