diff options
| author | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-11 01:41:56 +0000 |
|---|---|---|
| committer | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-11 01:41:56 +0000 |
| commit | 2d880e6c7dbdcabe87e9fbfc98835cc3b53eadd9 (patch) | |
| tree | dd7ffed8d0951ce885a89f8d2c9b0f6f6da54816 /classes/OPML.php | |
| parent | 348d9ec12e203f4feea56c2a9ae1a7483a4326a7 (diff) | |
Add some DOMElement hints to help PHPStan.
Diffstat (limited to 'classes/OPML.php')
| -rw-r--r-- | classes/OPML.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/OPML.php b/classes/OPML.php index 15fd8865f..9165f5fb6 100644 --- a/classes/OPML.php +++ b/classes/OPML.php @@ -252,6 +252,7 @@ class OPML extends Handler_Protected { $outlines = $xpath->query("//outline[@title]"); // cleanup empty categories + /** @var DOMElement $node */ foreach ($outlines as $node) { if ($node->getElementsByTagName('outline')->length == 0) $node->parentNode->removeChild($node); @@ -540,6 +541,7 @@ class OPML extends Handler_Protected { //$this->opml_notice("[CAT] $cat_title id: $cat_id P_id: $parent_id"); $this->opml_notice(T_sprintf("Processing category: %s", $cat_title ? $cat_title : __("Uncategorized")), $nest); + /** @var DOMElement $node */ foreach ($outlines as $node) { if ($node->hasAttributes() && strtolower($node->tagName) == "outline") { $attrs = $node->attributes; |