From 9ff6c3e1b85b35565923945cbe931aa780afdfe4 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 3 Jun 2021 07:21:44 +0000 Subject: [PATCH] [php8-compat] Fix undefined property on Array Cache class in wordpress on PHP8 --- CRM/Utils/Cache/ArrayCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Cache/ArrayCache.php b/CRM/Utils/Cache/ArrayCache.php index 45e0b4ed46..b5d947e88d 100644 --- a/CRM/Utils/Cache/ArrayCache.php +++ b/CRM/Utils/Cache/ArrayCache.php @@ -122,7 +122,7 @@ class CRM_Utils_Cache_ArrayCache implements CRM_Utils_Cache_Interface { * @return int|null */ public function getExpires($key) { - return $this->_expires[$key] ?: NULL; + return $this->_expires[$key] ?? NULL; } } -- 2.25.1