Skip to content

Commit

Permalink
Improve PHPStan analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Aug 31, 2020
1 parent e945110 commit b0736a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HTMLConverter.php
Expand Up @@ -96,11 +96,13 @@ protected function appendHeaderSection(string $node_name, array $record, DOMElem
return;
}

/** @var DOMDocument $ownerDocument */
$ownerDocument = $table->ownerDocument;
$node = $this->xml_converter
->rootElement($node_name)
->recordElement('tr')
->fieldElement('th')
->import([$record], $table->ownerDocument)
->import([$record], $ownerDocument)
;

/** @var DOMElement $element */
Expand Down

0 comments on commit b0736a4

Please sign in to comment.