Local Community

WPCLI not displaying php error

Created a simple CLI command with syntax error.

class CommandCenter extends WP_CLI_Command
{

    function test()
    {
        r
    }
}

WP_CLI::add_command('test', 'CommandCenter');

But after running the command, it didn’t show the detailed error log. Is this normal or there’s something I missed out in configuration?

Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

Under wp-config.php, I have set WP_DEBUG, WP_DEBUG_DISPLAY, ‘SCRIPT_DEBUG’ all to true.

Php.ini display_error is true as well.