Fix incompatible return types in Wrapper\XMLReader

This commit is contained in:
Fabian Wiget committed 2022-03-15 14:01:45 +01:00
1 parent 09b42171e5
commit 08a76b84a3
1 file changed
+2 -2
+2 -2
View File
@@ -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();