src/Whoops/Util/Misc.php
public static function translateErrorCode($error_code)
    {
        $constants = get_defined_constants(true);
        if (array_key_exists('Core', $constants)) {
            foreach ($constants['Core'] as $constant => $value) {
                if (substr($constant, 0, 2) == 'E_' && $value == $error_code) {
                    return $constant;
                }
            }
        }
        return "E_UNKNOWN";
    }
public static function translateErrorCode($error_code)
    {
        $constants = get_defined_constants(true);
        if (array_key_exists('Core', $constants)) {
            foreach ($constants['Core'] as $constant => $value) {
                if (substr($constant, 0, 2) == 'E_' && $value == $error_code) {
                    return $constant;
                }
            }
        }
        return "E_UNKNOWN";
    }
public static function translateErrorCode ( $ error_code ) { $ constants = get_defined_constants ( true ) ; if ( array_key_exists ( 'Core' , $ constants ) ) { foreach ( $ constants [ 'Core' ] as $ constant => $ value ) { if ( substr ( $ constant , 0 , 2 ) == 'E_' && $ value == $ error_code ) { return $ constant ; } } } return "E_UNKNOWN" ; }
Translate ErrorException code into the represented constant.

@param int $error_code
@return string
Translate ErrorException code into the represented constant .