src/exceptions/Handler.php
protected static function isFatal( $error ) {

		if( $error instanceof \Exception )
			return false;

		$fatal = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR;

		if( $error instanceof \ErrorException )
			$error = $error->getSeverity();

		return (bool) ($error & $fatal);

	}
protected static function isFatal( $error ) {

		if( $error instanceof \Exception )
			return false;

		$fatal = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR;

		if( $error instanceof \ErrorException )
			$error = $error->getSeverity();

		return (bool) ($error & $fatal);

	}
protected static function isFatal ( $ error ) { if ( $ error instanceof \ Exception ) return false ; $ fatal = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR ; if ( $ error instanceof \ ErrorException ) $ error = $ error -> getSeverity ( ) ; return ( bool ) ( $ error & $ fatal ) ; }
Determine if an error code or Exception is a fatal error.
@param  \Exception|integer  $error
@return boolean
Determine if an error code or Exception is a fatal error .