Skip to content

Commit

Permalink
fix passing null to parameter of type int notice
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkruss committed Jan 24, 2022
1 parent e498f2d commit 758b807
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions includes/object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit 758b807

Please sign in to comment.