Skip to content
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 src/main/php/org/bovigo/vfs/DotDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class DotDirectory extends vfsStreamDirectory
*
* @return vfsStreamContainerIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator(array());
Expand Down
5 changes: 5 additions & 0 deletions src/main/php/org/bovigo/vfs/vfsStreamContainerIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function __construct(array $children)
/**
* resets children pointer
*/
#[\ReturnTypeWillChange]
public function rewind()
{
reset($this->children);
Expand All @@ -48,6 +49,7 @@ public function rewind()
*
* @return vfsStreamContent
*/
#[\ReturnTypeWillChange]
public function current()
{
$child = current($this->children);
Expand All @@ -63,6 +65,7 @@ public function current()
*
* @return string
*/
#[\ReturnTypeWillChange]
public function key()
{
$child = current($this->children);
Expand All @@ -76,6 +79,7 @@ public function key()
/**
* iterates to next child
*/
#[\ReturnTypeWillChange]
public function next()
{
next($this->children);
Expand All @@ -86,6 +90,7 @@ public function next()
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function valid()
{
return (false !== current($this->children));
Expand Down
1 change: 1 addition & 0 deletions src/main/php/org/bovigo/vfs/vfsStreamDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public function getChildren()
*
* @return vfsStreamContainerIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new vfsStreamContainerIterator($this->children);
Expand Down