Fix incompatible return types in Wrapper\XMLReader
This commit is contained in:
1 parent
09b42171e5
commit
08a76b84a3
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user