Hey. Thanks for the inquiry. I have just published a patch release which addresses the warnings emitted on PHP 7.
Jan-Philip
Hi,
there is a small issue left:
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/wp-geshi-highlight/wp-geshi-highlight.php on line 245
This:
$match_index = count($wp_geshi_codesnipmatch_arrays);
must be replaced by:
$match_index = $wp_geshi_codesnipmatch_arrays ?
count($wp_geshi_codesnipmatch_arrays) : 0;
in wp-geshi-highlight.php on line 245.
Best,
Daniel.
And Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/wp-geshi-highlight/wp-geshi-highlight.php on line 146
must be fixed by: if (!$wp_geshi_codesnipmatch_arrays || !count($wp_geshi_codesnipmatch_arrays)) return;
on the subjected file/line.
Thanks for the feedback @dmorlock — really appreciated. Will look into publishing another patch release asap.
@dmorlock I have released another version of the plugin incorporating both changes that you suggested. Thanks again for your feedback — much appreciated!