summaryrefslogtreecommitdiff
path: root/classes/FeedParser.php
diff options
context:
space:
mode:
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;