summaryrefslogtreecommitdiff
path: root/classes/FeedParser.php
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-12-10 20:31:16 +0000
committerwn_ <invalid@email.com>2024-12-14 12:26:59 +0000
commita1bd6cea1bbb3041ee8e2ba44a80cd2ea0b8209f (patch)
tree7b52637ba8866c2efec6eb5a0c8adb75474038d6 /classes/FeedParser.php
parent333bab90a7d4d159d001e3f0579b10cced763249 (diff)
Use native typing in more places and clean up 'FeedEnclosure' a bit.
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;