1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 09:10:21 +02:00

PHP 8.1 deprecation fix

This commit is contained in:
Thomas Picquet
2022-01-31 11:20:45 -08:00
parent 87267764b9
commit 4fc4e31717

View File

@@ -31,9 +31,9 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable
/** /**
* Returns Iterator * Returns Iterator
* *
* @return array * @return \Traversable
*/ */
public function getIterator() public function getIterator(): \Traversable
{ {
return new ArrayIterator($this->items); return new ArrayIterator($this->items);
} }