protected function getSeverity(\ErrorException $e)
    {
        $severity = $e->getSeverity();
        if ($severity & \error_reporting()) {
            switch ($severity) {
                case E_WARNING:
                case E_NOTICE:
                case E_CORE_WARNING:
                case E_COMPILE_WARNING:
                case E_USER_WARNING:
                case E_USER_NOTICE:
                case E_STRICT:
                    return 'warning';

                default:
                    return 'error';
            }
        } else {
            // Since this is below the user's reporting threshold, it's always going to be a warning.
            return 'warning';
        }
    }
protected function getSeverity(\ErrorException $e)
    {
        $severity = $e->getSeverity();
        if ($severity & \error_reporting()) {
            switch ($severity) {
                case E_WARNING:
                case E_NOTICE:
                case E_CORE_WARNING:
                case E_COMPILE_WARNING:
                case E_USER_WARNING:
                case E_USER_NOTICE:
                case E_STRICT:
                    return 'warning';

                default:
                    return 'error';
            }
        } else {
            // Since this is below the user's reporting threshold, it's always going to be a warning.
            return 'warning';
        }
    }
protected function getSeverity ( \ ErrorException $ e ) { $ severity = $ e -> getSeverity ( ) ; if ( $ severity & \ error_reporting ( ) ) { switch ( $ severity ) { case E_WARNING : case E_NOTICE : case E_CORE_WARNING : case E_COMPILE_WARNING : case E_USER_WARNING : case E_USER_NOTICE : case E_STRICT : return 'warning' ; default : return 'error' ; } } else { // Since this is below the user's reporting threshold, it's always going to be a warning. return 'warning' ; } }
Helper for getting an output style for the given ErrorException's level.

@param \ErrorException $e

@return string
Helper for getting an output style for the given ErrorException s level .