From 1a66d7a6348b04bc46fad5ce06766d72e6455a90 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 28 Oct 2022 14:23:44 -0700 Subject: [PATCH] CRM_Core_Lock - Fix php82 warnings --- CRM/Core/Lock.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Lock.php b/CRM/Core/Lock.php index cc4c049b52..89897be264 100644 --- a/CRM/Core/Lock.php +++ b/CRM/Core/Lock.php @@ -42,6 +42,11 @@ class CRM_Core_Lock implements \Civi\Core\Lock\LockInterface { protected $_id; + /** + * @var int + */ + protected $_timeout; + /** * Use MySQL's GET_LOCK(). Locks are shared across all Civi instances * on the same MySQL server. @@ -158,7 +163,7 @@ class CRM_Core_Lock implements \Civi\Core\Lock\LockInterface { * * @todo document naming convention for CiviMail locks as this is key to ensuring they work properly. * - * @param int $timeout + * @param int|null $timeout * * @return bool * @throws \CRM_Core_Exception -- 2.25.1