• Hello, I’m trying to run it through CLI
    using the following command:
    wp phpcompat 7.3 --scan=active

    And this is the output:

    PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php on line 1766
    Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php on line 1766
    PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php on line 2883
    Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php on line 2883
    PHP Fatal error:  Uncaught Error: Call to undefined method PHPCompatibility\PHPCSHelper::findStartOfStatement() in /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/FunctionUse/ArgumentFunctionsReportCurrentValueSniff.php:323
    Stack trace:
    #0 /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php(576): PHPCompatibility\Sniffs\FunctionUse\ArgumentFunctionsReportCurrentValueSniff->process(Object(PHP_CodeSniffer_File), 3362)
    #1 /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1894): PHP_CodeSniffer_File->start(NULL)
    #2 /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1772): PHP_CodeSniffer->_processFile('/sites/ccessep1...', NULL)
    #3 /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php(653): PHP_CodeSniffer->process in /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/FunctionUse/ArgumentFunctionsReportCurrentValueSniff.php on line 323
    Fatal error: Uncaught Error: Call to undefined method PHPCompatibility\PHPCSHelper::findStartOfStatement() in /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/FunctionUse/ArgumentFunctionsReportCurrentValueSniff.php:323
    Stack trace:
    #0 /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php(576): PHPCompatibility\Sniffs\FunctionUse\ArgumentFunctionsReportCurrentValueSniff->process(Object(PHP_CodeSniffer_File), 3362)
    #1 /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1894): PHP_CodeSniffer_File->start(NULL)
    #2 /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1772): PHP_CodeSniffer->_processFile('/sites/ccessep1...', NULL)
    #3 /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php(653): PHP_CodeSniffer->process in /sites/ccessep19/wp-content/plugins/php-compatibility-checker/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/FunctionUse/ArgumentFunctionsReportCurrentValueSniff.php on line 323

    I’ve also tested with 7.2 and same output.
    However from the dashboard seems to be working fine (though ULTRA SLOW)

    Thanks,

  • The topic ‘CLI not working’ is closed to new replies.