Skip to content

Commit

Permalink
PHP 8.1 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nomafin committed Feb 2, 2023
1 parent c1f5fe6 commit 80e4887
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.16.2] - 2023-02-02

### Changed
- PHP 8.1 compatibility fix

## [1.16.1] - 2023-01-23

### Changed
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: RediPress
* Plugin URI: https://github.com/devgeniem/redipress
* Description: A WordPress plugin that provides a blazing fast search engine and WP Query performance enhancements.
* Version: 1.16.1
* Version: 1.16.2
* Author: Geniem
* Author URI: http://www.geniem.fi/
* License: GPL3
Expand Down
2 changes: 1 addition & 1 deletion src/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function format( array $source ) : array {
$source = self::recursive_to_string( $source );

// Remove possible first integer
if ( filter_var( $source[0], FILTER_VALIDATE_INT ) ) {
if ( isset( $source[0] ) && filter_var( $source[0], FILTER_VALIDATE_INT ) ) {
unset( $source[0] );
}

Expand Down

0 comments on commit 80e4887

Please sign in to comment.