Skip to content

Commit

Permalink
Fix PHP 8.1 deprecation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored Oct 6, 2021
1 parent 8544655 commit 613db0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ public function fputcsv(array $fields, string $delimiter = ',', string $enclosur
*
* @return int
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->offset;
Expand Down Expand Up @@ -365,6 +366,7 @@ public function rewind(): void
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function valid()
{
if (0 !== ($this->flags & SplFileObject::READ_AHEAD)) {
Expand All @@ -381,6 +383,7 @@ public function valid()
*
* @return mixed The value of the current element.
*/
#[\ReturnTypeWillChange]
public function current()
{
if (false !== $this->value) {
Expand Down

0 comments on commit 613db0b

Please sign in to comment.