diff --git a/docroot/modules/contrib/autologout/autologout.module b/docroot/modules/contrib/autologout/autologout.module
index 6565ae7ad0..a0970de6e8 100644
--- a/docroot/modules/contrib/autologout/autologout.module
+++ b/docroot/modules/contrib/autologout/autologout.module
@@ -261,7 +261,7 @@ function autologout_page_attachments_alter(array &$attachments) {
   if (is_numeric($lifetime) && intval($lifetime) === 0) {
     $expiry = 0;
   }
-  $cookie_samesite = $options['cookie_samesite'] ?: 'Lax';
+  $cookie_samesite = $options['cookie_samesite'] ?? 'Lax';

   $settings = [
     'timeout' => $refresh_only ? ($timeout * 500) : ($timeout * 1000),
@@ -405,7 +405,7 @@ function autologout_user_login($account): void {
   // Get the Drupal cookie lifetime and samesite from Core.
   $options = \Drupal::getContainer()->getParameter('session.storage.options');
   $lifetime = $options['cookie_lifetime'];
-  $cookie_samesite = $options['cookie_samesite'] ?: 'Lax';
+  $cookie_samesite = $options['cookie_samesite'] ?? 'Lax';
   // By default, expire like cores expiry.
   $expiry = \Drupal::time()->getRequestTime() + 2000000;
   if ($lifetime > 0) {

