Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jan-Philip Gehrcke

    (@jgehrcke)

    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.

    Plugin Author Jan-Philip Gehrcke

    (@jgehrcke)

    Thanks for the feedback @dmorlock — really appreciated. Will look into publishing another patch release asap.

    Plugin Author Jan-Philip Gehrcke

    (@jgehrcke)

    @dmorlock I have released another version of the plugin incorporating both changes that you suggested. Thanks again for your feedback — much appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 7.2 Compatibility’ is closed to new replies.