Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-3506

Fix php7.2 count() warning

    XporterXMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Should have
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.52
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Sprint #85
    • Section:
      Code Refactoring
    • Track:
      Development
    • Repositories:
      planet4-plugin-blocks

      Description

      E_WARNING: count(): Parameter must be an array or an object that implements Countable
      in get_the_content called at /app/source/public/wp-includes/formatting.php (3688)
      in wp_trim_excerpt called at /app/source/public/wp-includes/class-wp-hook.php (288)
      in WP_Hook::apply_filters called at /app/source/public/wp-includes/plugin.php (208)
      in apply_filters called at /app/source/public/wp-includes/post-template.php (412)
      …ns/planet4-plugin-blocks/classes/controller/blocks/class-covers-controller.php (170)
       
      Warning appears only on php7.2

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              kkokkoro Konstantinos Kokkorogiannis
              Reporter:
              kkokkoro Konstantinos Kokkorogiannis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: