From 2d880e6c7dbdcabe87e9fbfc98835cc3b53eadd9 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Sat, 11 Oct 2025 01:41:56 +0000 Subject: Add some DOMElement hints to help PHPStan. --- classes/FeedParser.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'classes/FeedParser.php') 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)); } -- cgit v1.2.3-54-g00ecf