• PHP Compatibility Checker is quite handy. However, it reports falsehoods.

    In a scan of BackWPup, for example, it reported 33 errors with 24 of them being falsely reported.

    The error for those 24 is:
    “‘resource’ is a reserved keyword as of PHP version 7.0 and cannot be used to name a class, interface or trait or as part of a namespace (T_NAMESPACE)”

    This is not true.

    According to PHP: List of reserved words, ‘resource’ can be used in those contexts though its use is discouraged.

    Such a soft reservation should produce only a Warning, not an Error.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Steven Word

    (@stevenkword)

    WPEngine Employee

    Thank you for your feedback. The PHP Compatibility Checker is using the PHPCompatibility library for PHP Code Sniffer which determines the error statuses. You may wish to provide this feedback to the GitHub repository where this library is maintained. When the library is updated, we can then incorporate it into our next release.

    https://github.com/wimg/PHPCompatibility/issues

Viewing 1 replies (of 1 total)
  • The topic ‘Falsely Reports Warnings as Errors’ is closed to new replies.