Skip to content

Commit

Permalink
Fix builds with php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Dec 9, 2021
1 parent 600ae8d commit 9ee6f6f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Source/AbstractPropertySourceIterator.php
Expand Up @@ -65,6 +65,7 @@ public function __construct(array $fields, string $dateTimeFormat = 'r')
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
$current = $this->iterator->current();
Expand All @@ -80,6 +81,7 @@ public function next(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->iterator->key();
Expand Down
2 changes: 2 additions & 0 deletions src/Source/AbstractXmlSourceIterator.php
Expand Up @@ -105,6 +105,7 @@ abstract public function tagContent($parser, string $data);
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
final public function current()
{
return $this->currentRow;
Expand All @@ -113,6 +114,7 @@ final public function current()
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
final public function key()
{
return $this->position;
Expand Down
2 changes: 2 additions & 0 deletions src/Source/ChainSourceIterator.php
Expand Up @@ -37,6 +37,7 @@ public function addSource(SourceIteratorInterface $source): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->sources->current()->current();
Expand All @@ -50,6 +51,7 @@ public function next(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->sources->current()->key();
Expand Down
2 changes: 2 additions & 0 deletions src/Source/CsvSourceIterator.php
Expand Up @@ -87,6 +87,7 @@ public function __construct(
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->currentLine;
Expand All @@ -95,6 +96,7 @@ public function current()
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->position;
Expand Down
2 changes: 2 additions & 0 deletions src/Source/IteratorSourceIterator.php
Expand Up @@ -39,6 +39,7 @@ final public function getIterator(): \Iterator
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->iterator->current();
Expand All @@ -52,6 +53,7 @@ final public function next(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
final public function key()
{
return $this->iterator->key();
Expand Down
2 changes: 2 additions & 0 deletions src/Source/PDOStatementSourceIterator.php
Expand Up @@ -45,6 +45,7 @@ public function __construct(\PDOStatement $statement)
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->current;
Expand All @@ -59,6 +60,7 @@ public function next(): void
/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->position;
Expand Down

0 comments on commit 9ee6f6f

Please sign in to comment.