| @@ -859,9 +859,9 @@ | ||
| 859 | 859 | } |
| 860 | 860 | |
| 861 | 861 | private function parseElements(DOMNode $element): void |
| 862 | 862 | { |
| 863 | - foreach ($element->childNodes as $child) { | |
| 863 | + foreach ($element->childNodes ?? [] as $child) { | |
| 864 | 864 | if ($child instanceof DOMText) { |
| 865 | 865 | $this->parseTextNode($child); |
| 866 | 866 | } elseif ($child instanceof DOMElement) { |
| 867 | 867 | $this->parseElementNode($child); |