This commit is contained in:
KONE SOREL 2026-03-28 11:51:53 +00:00
parent 8f823ac269
commit ca91bc92e0

View File

@ -60,9 +60,10 @@ class PHPExcel_WorksheetIterator implements Iterator
unset($this->subject); unset($this->subject);
} }
/** /**
* Rewind iterator * Rewind iterator
*/ */
#[\ReturnTypeWillChange]
public function rewind() public function rewind()
{ {
$this->position = 0; $this->position = 0;
@ -73,6 +74,7 @@ class PHPExcel_WorksheetIterator implements Iterator
* *
* @return PHPExcel_Worksheet * @return PHPExcel_Worksheet
*/ */
#[\ReturnTypeWillChange]
public function current() public function current()
{ {
return $this->subject->getSheet($this->position); return $this->subject->getSheet($this->position);
@ -83,6 +85,7 @@ class PHPExcel_WorksheetIterator implements Iterator
* *
* @return int * @return int
*/ */
#[\ReturnTypeWillChange]
public function key() public function key()
{ {
return $this->position; return $this->position;
@ -91,6 +94,7 @@ class PHPExcel_WorksheetIterator implements Iterator
/** /**
* Next value * Next value
*/ */
#[\ReturnTypeWillChange]
public function next() public function next()
{ {
++$this->position; ++$this->position;
@ -101,6 +105,7 @@ class PHPExcel_WorksheetIterator implements Iterator
* *
* @return boolean * @return boolean
*/ */
#[\ReturnTypeWillChange]
public function valid() public function valid()
{ {
return $this->position < $this->subject->getSheetCount(); return $this->position < $this->subject->getSheetCount();