src/PhpConsole/Dispatcher/Errors.php
protected function getErrorTypeByCode($code) {
		if(!static::$errorsConstantsValues) {
			foreach(static::$errorsConstantsNames as $constantName) {
				if(defined($constantName)) {
					static::$errorsConstantsValues[constant($constantName)] = $constantName;
				}
			}
		}
		if(isset(static::$errorsConstantsValues[$code])) {
			return static::$errorsConstantsValues[$code];
		}
		return (string)$code;
	}
protected function getErrorTypeByCode($code) {
		if(!static::$errorsConstantsValues) {
			foreach(static::$errorsConstantsNames as $constantName) {
				if(defined($constantName)) {
					static::$errorsConstantsValues[constant($constantName)] = $constantName;
				}
			}
		}
		if(isset(static::$errorsConstantsValues[$code])) {
			return static::$errorsConstantsValues[$code];
		}
		return (string)$code;
	}
protected function getErrorTypeByCode ( $ code ) { if ( ! static :: $ errorsConstantsValues ) { foreach ( static :: $ errorsConstantsNames as $ constantName ) { if ( defined ( $ constantName ) ) { static :: $ errorsConstantsValues [ constant ( $ constantName ) ] = $ constantName ; } } } if ( isset ( static :: $ errorsConstantsValues [ $ code ] ) ) { return static :: $ errorsConstantsValues [ $ code ] ; } return ( string ) $ code ; }
Get PHP error constant name by value
@param int $code
@return string
Get PHP error constant name by value