• Resolved trolinof

    (@trolinof)


    Hello,
    Please how to fix PHP 7.2 count problem?

    Warning: count(): Parameter must be an array or an object that implements Countable in
    beautiful-taxonomy-filters/public/class-beautiful-taxonomy-filters-public.php on line 326

    This line:
    return ( count($postcount_query->posts > 0) ? count($postcount_query->posts) : 0 );
    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Jonathandejong

    (@jonathandejong)

    Hi,

    I dont think its specific to PHP 7.2 but rather I need to add an ! empty check before doing the count.

    I’ll be sure to fix it for the next version 🙂

Viewing 1 replies (of 1 total)

The topic ‘PHP 7.2 count(null) problem’ is closed to new replies.