Skip to content

Commit

Permalink
Add annotation to FileList::getIterator() for PHP 8.1 compatibility (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
x3wil authored Dec 15, 2021
1 parent 0ffdf1c commit b964fcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Phing/Type/FileList.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use Phing\Io\FileReader;
use Phing\Io\IOException;
use Phing\Project;
use ReturnTypeWillChange;

/**
* FileList represents an explicitly named list of files. FileLists
Expand Down Expand Up @@ -85,6 +86,7 @@ public function __construct($filelist = null)
}
}

#[ReturnTypeWillChange]
public function getIterator()
{
return new ArrayIterator($this->getFiles($this->getProject()));
Expand Down

0 comments on commit b964fcd

Please sign in to comment.