add Travesersable return type for method getIterator in Direcory.php

This commit is contained in:
Heliostat9 2022-07-28 12:29:41 +03:00
parent 610649d759
commit 32a8b0f310

View File

@ -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);
} }