public static function register() {
		ini_set('display_errors', 0);
		ini_set('display_startup_errors', 0);
		error_reporting(-1);

		static::$reservedMemory = str_repeat('a', 10240);
		static::$errorAtStart = error_get_last();

		$errorHandler = new static();
		set_error_handler([$errorHandler, 'phpErrorHandler']);
		set_exception_handler([$errorHandler, 'exceptionHandler']);

		return $errorHandler;
	}
public static function register() {
		ini_set('display_errors', 0);
		ini_set('display_startup_errors', 0);
		error_reporting(-1);

		static::$reservedMemory = str_repeat('a', 10240);
		static::$errorAtStart = error_get_last();

		$errorHandler = new static();
		set_error_handler([$errorHandler, 'phpErrorHandler']);
		set_exception_handler([$errorHandler, 'exceptionHandler']);

		return $errorHandler;
	}
public static function register ( ) { ini_set ( 'display_errors' , 0 ) ; ini_set ( 'display_startup_errors' , 0 ) ; error_reporting ( - 1 ) ; static :: $ reservedMemory = str_repeat ( 'a' , 10240 ) ; static :: $ errorAtStart = error_get_last ( ) ; $ errorHandler = new static ( ) ; set_error_handler ( [ $ errorHandler , 'phpErrorHandler' ] ) ; set_exception_handler ( [ $ errorHandler , 'exceptionHandler' ] ) ; return $ errorHandler ; }
Register the PHP error handler.
@return ErrorHandler
Register the PHP error handler .