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 ) {