root instanceof DomNode) { // this condition shouldn't happen it is here only for PHPStan throw new \Exception('Renderer is not configured correctly'); } return $parser->root; } }