diff --git a/core/modules/update/update.module b/core/modules/update/update.module
index 349f694..d2fa2ce 100644
--- a/core/modules/update/update.module
+++ b/core/modules/update/update.module
@@ -213,7 +213,7 @@ function update_cron() {
   $update_config = \Drupal::config('update.settings');
   $frequency = $update_config->get('check.interval_days');
   $interval = 60 * 60 * 24 * $frequency;
-  $last_check = \Drupal::state()->get('update.last_check') ?: 0;
+  $last_check = \Drupal::state()->get('update.last_check', 0);
   if ((REQUEST_TIME - $last_check) > $interval) {
     // If the configured update interval has elapsed, we want to invalidate
     // the data for all projects, attempt to re-fetch, and trigger any
@@ -226,7 +226,7 @@ function update_cron() {
     // missing data, and if so, try to fetch the data.
     update_get_available(TRUE);
   }
-  $last_email_notice = \Drupal::state()->get('update.last_email_notification') ?: 0;
+  $last_email_notice = \Drupal::state()->get('update.last_email_notification', 0);
   if ((REQUEST_TIME - $last_email_notice) > $interval) {
     // If configured time between notifications elapsed, send email about
     // updates possibly available.
