Fix PHP 8.1 deprecations
This commit is contained in:
1 parent
27c6845b4b
commit
e75f6f7301
5 files changed
+29
-29
No files matched your search
@@ -118,7 +118,7 @@ class RowIterator implements IteratorInterface
|
||||
* @throws \Box\Spout\Reader\Exception\IteratorNotRewindableException If the iterator is rewound more than once
|
||||
* @return void
|
||||
*/
|
||||
public function rewind()
|
||||
public function rewind() : void
|
||||
{
|
||||
// Because sheet and row data is located in the file, we can't rewind both the
|
||||
// sheet iterator and the row iterator, as XML file cannot be read backwards.
|
||||
@@ -142,7 +142,7 @@ class RowIterator implements IteratorInterface
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function valid()
|
||||
public function valid() : bool
|
||||
{
|
||||
return (!$this->hasReachedEndOfFile);
|
||||
}
|
||||
@@ -155,7 +155,7 @@ class RowIterator implements IteratorInterface
|
||||
* @throws \Box\Spout\Common\Exception\IOException If unable to read the sheet data XML
|
||||
* @return void
|
||||
*/
|
||||
public function next()
|
||||
public function next() : void
|
||||
{
|
||||
if ($this->doesNeedDataForNextRowToBeProcessed()) {
|
||||
$this->readDataForNextRow();
|
||||
@@ -356,7 +356,7 @@ class RowIterator implements IteratorInterface
|
||||
*
|
||||
* @return Row
|
||||
*/
|
||||
public function current()
|
||||
public function current() : Row
|
||||
{
|
||||
return $this->rowBuffer;
|
||||
}
|
||||
@@ -367,7 +367,7 @@ class RowIterator implements IteratorInterface
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function key()
|
||||
public function key() : int
|
||||
{
|
||||
return $this->lastRowIndexProcessed;
|
||||
}
|
||||
@@ -377,7 +377,7 @@ class RowIterator implements IteratorInterface
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function end()
|
||||
public function end() : void
|
||||
{
|
||||
$this->xmlReader->close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user