aboutsummaryrefslogtreecommitdiff
path: root/classes/FeedParser.php
diff options
context:
space:
mode:
authorGreg <supahgreg@users.noreply.github.com>2025-10-10 20:46:43 -0500
committerGitHub <noreply@github.com>2025-10-10 20:46:43 -0500
commit46e0d6e1efa04c8905b4f8d016512125464a5732 (patch)
treeec1df81a86310e44b5ef07fb4a9aebcb15186e77 /classes/FeedParser.php
parent92493059da37b3cbd7040f786b1129571e3893cc (diff)
parent2d880e6c7dbdcabe87e9fbfc98835cc3b53eadd9 (diff)
Merge pull request #22 from tt-rss/bugfix/php-deps
Don't bundle PHP dev dependencies
Diffstat (limited to 'classes/FeedParser.php')
-rw-r--r--classes/FeedParser.php3
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));
}