Update Finder.php

Corrected return type which causes following error with (psalm)[https://getpsalm.org/]
```
ERROR: PossiblyInvalidArgument - src/Command/Utils/CheckVendorDependencies.php:170:62 - Argument 1 of iterator_to_array expects Traversable, possibly different type array<mixed, Symfony\Component\Finder\SplFileInfo>|Iterator provided $directories = array_map($closure, iterator_to_array($finder->getIterator()));
```
This commit is contained in:
Tarmo Leppänen 2018-06-07 20:53:17 +03:00 committed by Nicolas Grekas
parent ae30a80f77
commit a74ee8d594

View File

@ -668,7 +668,7 @@ class Finder implements \IteratorAggregate, \Countable
*
* This method implements the IteratorAggregate interface.
*
* @return \Iterator|SplFileInfo[] An iterator
* @return \Iterator|\SplFileInfo[] An iterator
*
* @throws \LogicException if the in() method has not been called
*/