From 77e27ed65c86850ac8e80e9374f96cbf72431709 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sat, 24 Feb 2018 17:27:46 -0500 Subject: [PATCH] Tweak --- lib/XMLFeed.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/XMLFeed.php b/lib/XMLFeed.php index 6ae2077..abd8db0 100644 --- a/lib/XMLFeed.php +++ b/lib/XMLFeed.php @@ -20,14 +20,14 @@ class XMLFeed extends XMLCommon { public $people; public $author; - /** Returns a parsed feed */ - public function __construct(string $data, string $contentType = null, string $url = null) { + /** Constructs a parsed feed */ + public function __construct(string $data, string $contentType = "", string $url = "") { $this->init($data, $contentType, $url); $this->parse(); } /** Performs initialization of the instance */ - protected function init(string $data, string $contentType = null, string $url = null) { + protected function init(string $data, string $contentType = "", string $url = "") { $this->document = new \DOMDocument(); $this->document->loadXML($data, \LIBXML_BIGLINES | \LIBXML_COMPACT); $this->document->documentURI = $url;