protected function _logInternalError($exception)
    {
        // Disable trace for internal errors.
        $this->_options['trace'] = false;
        $message = sprintf(
            "[%s] %s\n%s", // Keeping same message format
            get_class($exception),
            $exception->getMessage(),
            $exception->getTraceAsString()
        );
        trigger_error($message, E_USER_ERROR);
    }
protected function _logInternalError($exception)
    {
        // Disable trace for internal errors.
        $this->_options['trace'] = false;
        $message = sprintf(
            "[%s] %s\n%s", // Keeping same message format
            get_class($exception),
            $exception->getMessage(),
            $exception->getTraceAsString()
        );
        trigger_error($message, E_USER_ERROR);
    }
protected function _logInternalError ( $ exception ) { // Disable trace for internal errors. $ this -> _options [ 'trace' ] = false ; $ message = sprintf ( "[%s] %s\n%s" , // Keeping same message format get_class ( $ exception ) , $ exception -> getMessage ( ) , $ exception -> getTraceAsString ( ) ) ; trigger_error ( $ message , E_USER_ERROR ) ; }
Logs both PHP5 and PHP7 errors.

The PHP5 part will be removed with 4.0.

@param \Throwable|\Exception $exception Exception.

@return void
Logs both PHP5 and PHP7 errors .