diff --git a/src/DotDirectory.php b/src/DotDirectory.php index 30f513b..ee1ab03 100644 --- a/src/DotDirectory.php +++ b/src/DotDirectory.php @@ -24,6 +24,7 @@ class DotDirectory extends vfsDirectory * * @return vfsDirectoryIterator */ + #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator(array()); diff --git a/src/vfsDirectory.php b/src/vfsDirectory.php index 700f251..fccb69b 100644 --- a/src/vfsDirectory.php +++ b/src/vfsDirectory.php @@ -255,6 +255,7 @@ public function getChildren() * * @return vfsDirectoryIterator */ + #[\ReturnTypeWillChange] public function getIterator() { return new vfsDirectoryIterator($this->children); diff --git a/src/vfsDirectoryIterator.php b/src/vfsDirectoryIterator.php index 1889256..ef48560 100644 --- a/src/vfsDirectoryIterator.php +++ b/src/vfsDirectoryIterator.php @@ -47,6 +47,7 @@ public function __construct(array $children) /** * resets children pointer */ + #[\ReturnTypeWillChange] public function rewind() { reset($this->children); @@ -57,6 +58,7 @@ public function rewind() * * @return vfsStreamContent */ + #[\ReturnTypeWillChange] public function current() { $child = current($this->children); @@ -72,6 +74,7 @@ public function current() * * @return string */ + #[\ReturnTypeWillChange] public function key() { $child = current($this->children); @@ -85,6 +88,7 @@ public function key() /** * iterates to next child */ + #[\ReturnTypeWillChange] public function next() { next($this->children); @@ -95,6 +99,7 @@ public function next() * * @return bool */ + #[\ReturnTypeWillChange] public function valid() { return (false !== current($this->children));