This commit is contained in:
wangjinlei
2024-12-31 10:28:40 +08:00
parent 145b0ab8a5
commit a54a837670
1179 changed files with 2686 additions and 230376 deletions

View File

@@ -18,7 +18,7 @@ class OfficeMathML implements ReaderInterface
/** @var Math */
protected $math;
/** @var DOMXpath */
/** @var DOMXPath */
protected $xpath;
/** @var string[] */
@@ -52,7 +52,7 @@ class OfficeMathML implements ReaderInterface
*/
protected function parseNode(?DOMNode $nodeRowElement, $parent): void
{
$this->xpath = new DOMXpath($this->dom);
$this->xpath = new DOMXPath($this->dom);
foreach ($this->xpath->query('*', $nodeRowElement) ?: [] as $nodeElement) {
$element = $this->getElement($nodeElement);
$parent->add($element);