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/FeedParser.php | |
| parent | 348d9ec12e203f4feea56c2a9ae1a7483a4326a7 (diff) | |
Add some DOMElement hints to help PHPStan.
Diffstat (limited to 'classes/FeedParser.php')
| -rw-r--r-- | classes/FeedParser.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/FeedParser.php b/classes/FeedParser.php index e0b16010c..886598d48 100644 --- a/classes/FeedParser.php +++ b/classes/FeedParser.php @@ -100,6 +100,7 @@ class FeedParser { if (empty($articles) || $articles->length == 0) $articles = $xpath->query("//atom03:entry"); + /** @var DOMElement $article */ foreach ($articles as $article) { array_push($this->items, new FeedItem_Atom($article, $this->doc, $this->xpath)); } @@ -124,6 +125,7 @@ class FeedParser { $articles = $xpath->query("//channel/item"); + /** @var DOMElement $article */ foreach ($articles as $article) { array_push($this->items, new FeedItem_RSS($article, $this->doc, $this->xpath)); } @@ -146,6 +148,7 @@ class FeedParser { $articles = $xpath->query("//rssfake:item"); + /** @var DOMElement $article */ foreach ($articles as $article) { array_push($this->items, new FeedItem_RSS($article, $this->doc, $this->xpath)); } |