From 758b807e82c617bb4eaf9252485ade87eb201d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20Kru=CC=88ss?= Date: Mon, 24 Jan 2022 10:44:42 -0800 Subject: [PATCH] fix passing null to parameter of type int notice --- CHANGELOG.md | 1 + includes/object-cache.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19df3a47..467adf55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Added support for Relay - Minor UX fixes and improvements - Updated ApexCharts to v3.31.0 +- Fixed PHP 8.1 deprecation notice ## 2.0.22 diff --git a/includes/object-cache.php b/includes/object-cache.php index eead831b..a31c648a 100644 --- a/includes/object-cache.php +++ b/includes/object-cache.php @@ -620,7 +620,7 @@ protected function connect_using_phpredis( $parameters ) { 'port' => $parameters['port'], 'timeout' => $parameters['timeout'], '', - 'retry_interval' => $parameters['retry_interval'], + 'retry_interval' => (int) $parameters['retry_interval'], ]; if ( strcasecmp( 'tls', $parameters['scheme'] ) === 0 ) { @@ -690,7 +690,7 @@ protected function connect_using_relay( $parameters ) { 'port' => $parameters['port'], 'timeout' => $parameters['timeout'], '', - 'retry_interval' => $parameters['retry_interval'], + 'retry_interval' => (int) $parameters['retry_interval'], ]; if ( strcasecmp( 'tls', $parameters['scheme'] ) === 0 ) {