mirror of
https://github.com/adlawson/php-vfs.git
synced 2024-11-25 14:17:34 +00:00
add Travesersable return type for method getIterator in Direcory.php
This commit is contained in:
parent
610649d759
commit
32a8b0f310
@ -109,7 +109,7 @@ class Directory implements NodeContainerInterface
|
|||||||
$this->dateModified = $dateTime;
|
$this->dateModified = $dateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getIterator()
|
public function getIterator(): \Traversable
|
||||||
{
|
{
|
||||||
return new ArrayIterator($this->nodes);
|
return new ArrayIterator($this->nodes);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user