ErrorReporting/src/Bootstrap.php
public static function getErrorPrefix($level)
    {
        switch ($level) {
            case E_PARSE:
                $prefix = 'PHP Parse error';
                break;
            case E_ERROR:
            case E_CORE_ERROR:
            case E_COMPILE_ERROR:
                $prefix = 'PHP Fatal error';
                break;
            case E_USER_ERROR:
            case E_RECOVERABLE_ERROR:
                $prefix = 'PHP error';
                break;
            case E_WARNING:
            case E_CORE_WARNING:
            case E_COMPILE_WARNING:
            case E_USER_WARNING:
                $prefix = 'PHP Warning';
                break;
            case E_NOTICE:
            case E_USER_NOTICE:
                $prefix = 'PHP Notice';
                break;
            case E_STRICT:
                $prefix = 'PHP Debug';
                break;
            default:
                $prefix = 'PHP Notice';
        }
        return $prefix;
    }
public static function getErrorPrefix($level)
    {
        switch ($level) {
            case E_PARSE:
                $prefix = 'PHP Parse error';
                break;
            case E_ERROR:
            case E_CORE_ERROR:
            case E_COMPILE_ERROR:
                $prefix = 'PHP Fatal error';
                break;
            case E_USER_ERROR:
            case E_RECOVERABLE_ERROR:
                $prefix = 'PHP error';
                break;
            case E_WARNING:
            case E_CORE_WARNING:
            case E_COMPILE_WARNING:
            case E_USER_WARNING:
                $prefix = 'PHP Warning';
                break;
            case E_NOTICE:
            case E_USER_NOTICE:
                $prefix = 'PHP Notice';
                break;
            case E_STRICT:
                $prefix = 'PHP Debug';
                break;
            default:
                $prefix = 'PHP Notice';
        }
        return $prefix;
    }
public static function getErrorPrefix ( $ level ) { switch ( $ level ) { case E_PARSE : $ prefix = 'PHP Parse error' ; break ; case E_ERROR : case E_CORE_ERROR : case E_COMPILE_ERROR : $ prefix = 'PHP Fatal error' ; break ; case E_USER_ERROR : case E_RECOVERABLE_ERROR : $ prefix = 'PHP error' ; break ; case E_WARNING : case E_CORE_WARNING : case E_COMPILE_WARNING : case E_USER_WARNING : $ prefix = 'PHP Warning' ; break ; case E_NOTICE : case E_USER_NOTICE : $ prefix = 'PHP Notice' ; break ; case E_STRICT : $ prefix = 'PHP Debug' ; break ; default : $ prefix = 'PHP Notice' ; } return $ prefix ; }
Return a string prefix for the given error level.

@param int $level
@return string A string prefix for reporting the error.
Return a string prefix for the given error level .