Trait for the Collection > type hinting

This commit is contained in:
Meritoo
2019-05-10 22:17:40 +02:00
parent 98d0fed61d
commit 9a1f49d373
4 changed files with 15 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ trait IteratorAggregateTrait
/**
* {@inheritdoc}
*/
public function getIterator()
public function getIterator(): ArrayIterator
{
return new ArrayIterator($this->elements);
}