Skip to content

Commit

Permalink
Merge pull request #24 from Micdu70/dev
Browse files Browse the repository at this point in the history
Hide "Return type compatibility deprecation" notices (PHP 8.x)
  • Loading branch information
nelu authored Jan 24, 2022
2 parents 1fc3d3c + 2d2085e commit 7eddd24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SFV.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ public function length()
}


#[\ReturnTypeWillChange]
function rewind()
{

$this->position = 0;
$this->file = null;
}

#[\ReturnTypeWillChange]
function current()
{

Expand All @@ -116,18 +118,21 @@ function current()

}

#[\ReturnTypeWillChange]
function key()
{

return $this->position;
}

#[\ReturnTypeWillChange]
function next()
{

++$this->position;
}

#[\ReturnTypeWillChange]
function valid()
{
return isset($this->files[$this->position]);
Expand Down

0 comments on commit 7eddd24

Please sign in to comment.