src/mako/error/handlers/cli/DevelopmentHandler.php
protected function determineExceptionType(Throwable $exception): string
	{
		if($exception instanceof ErrorException)
		{
			$code = $exception->getCode();

			$codes =
			[
				E_ERROR             => 'Fatal Error',
				E_PARSE             => 'Parse Error',
				E_COMPILE_ERROR     => 'Compile Error',
				E_COMPILE_WARNING   => 'Compile Warning',
				E_STRICT            => 'Strict Mode Error',
				E_NOTICE            => 'Notice',
				E_WARNING           => 'Warning',
				E_RECOVERABLE_ERROR => 'Recoverable Error',
				E_DEPRECATED        => 'Deprecated',
				E_USER_NOTICE       => 'Notice',
				E_USER_WARNING      => 'Warning',
				E_USER_ERROR        => 'Error',
				E_USER_DEPRECATED   => 'Deprecated',
			];

			return in_array($code, array_keys($codes)) ? $codes[$code] : 'ErrorException';
		}

		return get_class($exception);
	}
protected function determineExceptionType(Throwable $exception): string
	{
		if($exception instanceof ErrorException)
		{
			$code = $exception->getCode();

			$codes =
			[
				E_ERROR             => 'Fatal Error',
				E_PARSE             => 'Parse Error',
				E_COMPILE_ERROR     => 'Compile Error',
				E_COMPILE_WARNING   => 'Compile Warning',
				E_STRICT            => 'Strict Mode Error',
				E_NOTICE            => 'Notice',
				E_WARNING           => 'Warning',
				E_RECOVERABLE_ERROR => 'Recoverable Error',
				E_DEPRECATED        => 'Deprecated',
				E_USER_NOTICE       => 'Notice',
				E_USER_WARNING      => 'Warning',
				E_USER_ERROR        => 'Error',
				E_USER_DEPRECATED   => 'Deprecated',
			];

			return in_array($code, array_keys($codes)) ? $codes[$code] : 'ErrorException';
		}

		return get_class($exception);
	}
protected function determineExceptionType ( Throwable $ exception ) : string { if ( $ exception instanceof ErrorException ) { $ code = $ exception -> getCode ( ) ; $ codes = [ E_ERROR => 'Fatal Error' , E_PARSE => 'Parse Error' , E_COMPILE_ERROR => 'Compile Error' , E_COMPILE_WARNING => 'Compile Warning' , E_STRICT => 'Strict Mode Error' , E_NOTICE => 'Notice' , E_WARNING => 'Warning' , E_RECOVERABLE_ERROR => 'Recoverable Error' , E_DEPRECATED => 'Deprecated' , E_USER_NOTICE => 'Notice' , E_USER_WARNING => 'Warning' , E_USER_ERROR => 'Error' , E_USER_DEPRECATED => 'Deprecated' , ] ; return in_array ( $ code , array_keys ( $ codes ) ) ? $ codes [ $ code ] : 'ErrorException' ; } return get_class ( $ exception ) ; }
Determines the exception type.

@param  \Throwable $exception Throwable
@return string
Determines the exception type .