From 08a76b84a3b0e2565ab7d1e1c961cfe285df1d56 Mon Sep 17 00:00:00 2001 From: Fabian Wiget Date: Thu, 6 Jan 2022 12:17:53 +0100 Subject: [PATCH] Fix incompatible return types in Wrapper\XMLReader --- src/Spout/Reader/Wrapper/XMLReader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Spout/Reader/Wrapper/XMLReader.php b/src/Spout/Reader/Wrapper/XMLReader.php index 5c2d2e8..ea123d6 100644 --- a/src/Spout/Reader/Wrapper/XMLReader.php +++ b/src/Spout/Reader/Wrapper/XMLReader.php @@ -83,7 +83,7 @@ class XMLReader extends \XMLReader * @throws \Box\Spout\Reader\Exception\XMLProcessingException If an error/warning occurred * @return bool TRUE on success or FALSE on failure */ - public function read() + public function read() : bool { $this->useXMLInternalErrors(); @@ -119,7 +119,7 @@ class XMLReader extends \XMLReader * @throws \Box\Spout\Reader\Exception\XMLProcessingException If an error/warning occurred * @return bool TRUE on success or FALSE on failure */ - public function next($localName = null) + public function next($localName = null) : bool { $this->useXMLInternalErrors();