From a1bd6cea1bbb3041ee8e2ba44a80cd2ea0b8209f Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 10 Dec 2024 20:31:16 +0000 Subject: Use native typing in more places and clean up 'FeedEnclosure' a bit. --- classes/FeedParser.php | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'classes/FeedParser.php') 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 @@ */ - private $libxml_errors = []; + private array $libxml_errors = []; /** @var array */ - 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; -- cgit v1.2.3-54-g00ecf