Skip to content

Commit a71127e

Browse files
committed
Fix return types for PHP8.1
1 parent 730b01b commit a71127e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: composer.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "phpunit/php-file-iterator",
2+
"name": "php5friends/php-file-iterator",
33
"description": "FilterIterator implementation that filters files based on a list of suffixes.",
44
"type": "library",
55
"keywords": [
66
"iterator",
77
"filesystem"
88
],
9-
"homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
9+
"homepage": "https://github.com/php5friends/php-file-iterator/",
1010
"license": "BSD-3-Clause",
1111
"authors": [
1212
{
@@ -16,8 +16,10 @@
1616
}
1717
],
1818
"support": {
19-
"issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
20-
"irc": "irc://irc.freenode.net/phpunit"
19+
"issues": "https://github.com/php5friends/php-file-iterator/issues"
20+
},
21+
"replace": {
22+
"phpunit/php-file-iterator": "*"
2123
},
2224
"require": {
2325
"php": ">=5.3.3"

Diff for: src/Iterator.php

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function __construct(Iterator $iterator, array $suffixes = array(), array
7373
/**
7474
* @return bool
7575
*/
76+
#[\ReturnTypeWillChange]
7677
public function accept()
7778
{
7879
$current = $this->getInnerIterator()->current();

0 commit comments

Comments
 (0)