Skip to content

Commit

Permalink
support php8
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrajodas committed Nov 14, 2023
1 parent 7ba1374 commit 5a686d6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/CsvReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Keboola\Csv;

use Iterator;
use ReturnTypeWillChange;

class CsvReader extends AbstractCsvFile implements Iterator
{
Expand Down Expand Up @@ -169,7 +170,7 @@ public function getLineBreak()
/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
#[ReturnTypeWillChange]
public function rewind()
{
rewind($this->getFilePointer());
Expand Down Expand Up @@ -218,7 +219,7 @@ public function getLineBreakAsText()
/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
#[ReturnTypeWillChange]
public function current()
{
return $this->currentRow;
Expand All @@ -227,7 +228,7 @@ public function current()
/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
#[ReturnTypeWillChange]
public function next()
{
$this->currentRow = $this->readLine();
Expand All @@ -237,7 +238,7 @@ public function next()
/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
#[ReturnTypeWillChange]
public function key()
{
return $this->rowCounter;
Expand All @@ -246,7 +247,7 @@ public function key()
/**
* @inheritdoc
*/
#[\ReturnTypeWillChange]
#[ReturnTypeWillChange]
public function valid()
{
return $this->currentRow !== false;
Expand Down

0 comments on commit 5a686d6

Please sign in to comment.