protected function init() {
		$errorMask = E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR |
		             E_PARSE | E_USER_ERROR | E_RECOVERABLE_ERROR;
		
		set_error_handler(function($type, $message, $file, $line) use($errorMask) {
			$this->errors[] = [
				'type'    => $type,
				'message' => $message,
				'file'    => $file,
				'line'    => $line
			];
			
			if ($errorMask & $type) {
				$this->hasError = true;
			}
			 
			return true;
		});
	}
protected function init() {
		$errorMask = E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR |
		             E_PARSE | E_USER_ERROR | E_RECOVERABLE_ERROR;
		
		set_error_handler(function($type, $message, $file, $line) use($errorMask) {
			$this->errors[] = [
				'type'    => $type,
				'message' => $message,
				'file'    => $file,
				'line'    => $line
			];
			
			if ($errorMask & $type) {
				$this->hasError = true;
			}
			 
			return true;
		});
	}
protected function init ( ) { $ errorMask = E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_PARSE | E_USER_ERROR | E_RECOVERABLE_ERROR ; set_error_handler ( function ( $ type , $ message , $ file , $ line ) use ( $ errorMask ) { $ this -> errors [ ] = [ 'type' => $ type , 'message' => $ message , 'file' => $ file , 'line' => $ line ] ; if ( $ errorMask & $ type ) { $ this -> hasError = true ; } return true ; } ) ; }
Init the collector
Init the collector