Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PHP 8.1.0 #56

Merged
merged 3 commits into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- "7.3"
- "7.4"
- "8.0"
- "8.1-rc"
operating-system:
- "ubuntu-latest"
- "windows-latest"
Expand Down
3 changes: 3 additions & 0 deletions src/Iterator/RecursiveDirectoryIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function __construct($path, $flags = 0)
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function getChildren()
{
return new static($this->getPathname(), $this->getFlags());
Expand All @@ -58,6 +59,7 @@ public function getChildren()
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function key()
{
$key = parent::key();
Expand All @@ -72,6 +74,7 @@ public function key()
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function current()
{
$current = parent::current();
Expand Down
4 changes: 4 additions & 0 deletions src/Iterator/RegexFilterIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function __construct($regExp, $staticPrefix, Iterator $innerIterator, $mo
/**
* Rewind the iterator to the first position.
*/
#[\ReturnTypeWillChange]
public function rewind()
{
parent::rewind();
Expand All @@ -106,6 +107,7 @@ public function rewind()
*
* @return int The current position.
*/
#[\ReturnTypeWillChange]
public function key()
{
if (!$this->valid()) {
Expand All @@ -124,6 +126,7 @@ public function key()
*
* @see Iterator::next()
*/
#[\ReturnTypeWillChange]
public function next()
{
if ($this->valid()) {
Expand All @@ -137,6 +140,7 @@ public function next()
*
* @return bool Whether the path is accepted.
*/
#[\ReturnTypeWillChange]
public function accept()
{
$path = ($this->mode & self::FILTER_VALUE) ? $this->current() : parent::key();
Expand Down