Skip to content

PHP 7 errors when scanning with PHP Compatibility Checker #2

Description

@ayavilevich

Hi, getting the following errors when scanning the plugin with "PHP Compatibility Checker" plugin.

Is this a false positive?

FILE: /home/.../wp-content/plugins/cherry-trending-posts/cherry-framework/modules/cherry-utility/inc/cherry-attributes-utilit.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 99 | ERROR | Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/.../wp-content/plugins/cherry-trending-posts/cherry-framework/setup.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
 14 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
-------------------------------------------------------------------------------------------------------------------------

FYI, other "Cherry *" plugins have warning as well. Mostly in relation to the use of the deprecated create_function() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions