• Resolved Thomas Maier

    (@webzunft)


    Hi,

    in my debug.log, I get this error:

    PHP Notice: Use of undefined constant ‘cli’ - assumed '‘cli’' in /wp-content/plugins/php-compatibility-checker/src/wpephpcompat.php on line 468

    Within that file:

    return defined( 'WP_CLI' ) || defined( 'PHPUNIT_TEST' ) || php_sapi_name() == ‘cli’;

    The quotation marks around “cli” are actually for texts, not for PHP, hence, this error is triggered and really spamming my logs.

    Thomas

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong quotation marks trigger PHP error’ is closed to new replies.