/** * Set the error handling for the application. * * @return void */ protected function registerErrorHandling() { parent::registerErrorHandling(); // Don't display additional errors on top of the exception being rendered // @codeCoverageIgnoreStart ini_set('display_errors', 0); if ('cli' !== php_sapi_name() && (!ini_get('log_errors') || ini_get('error_log'))) { // CLI - display errors only if they're not already logged to STDERR ini_set('display_errors', 1); } // @codeCoverageIgnoreEnd }