summaryrefslogtreecommitdiff
path: root/classes/FeedParser.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-12-16 06:29:28 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-12-16 06:29:28 +0000
commite990a3c00fb630465996a29d60d9acc7687c8979 (patch)
tree6a1071eeb3e1a618ac3fe94bcf8363c6fbbc0bb5 /classes/FeedParser.php
parentd1c0ba5944e225165a5761e3d9a6620d27aca263 (diff)
parent6f8f1b30d508dc3d2c3a067ca7fe2d161963ef5f (diff)
Merge branch 'feature/php-misc' into 'master'
More native typing, use some new PHP stuff See merge request tt-rss/tt-rss!88
Diffstat (limited to 'classes/FeedParser.php')
-rw-r--r--classes/FeedParser.php22
1 files changed, 8 insertions, 14 deletions
diff --git a/classes/FeedParser.php b/classes/FeedParser.php
index c288ffc91..fd26226ae 100644
--- a/classes/FeedParser.php
+++ b/classes/FeedParser.php
@@ -1,29 +1,23 @@
<?php
class FeedParser {
+ private DOMDocument $doc;
- /** @var DOMDocument */
- private $doc;
-
- /** @var string|null */
- private $error = null;
+ private ?string $error = null;
/** @var array<string> */
- private $libxml_errors = [];
+ private array $libxml_errors = [];
/** @var array<FeedItem> */
- private $items = [];
+ private array $items = [];
- /** @var string|null */
- private $link;
+ private ?string $link = null;
- /** @var string|null */
- private $title;
+ private ?string $title = null;
/** @var FeedParser::FEED_*|null */
- private $type;
+ private ?int $type = null;
- /** @var DOMXPath|null */
- private $xpath;
+ private ?DOMXPath $xpath = null;
const FEED_UNKNOWN = -1;
const FEED_RDF = 0;