Skip to content

Commit 1100c74

Browse files
tarleppnicolas-grekas
authored andcommitted
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())); ```
1 parent 877af58 commit 1100c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Finder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ public function in($dirs)
668668
*
669669
* This method implements the IteratorAggregate interface.
670670
*
671-
* @return \Iterator|SplFileInfo[] An iterator
671+
* @return \Iterator|\SplFileInfo[] An iterator
672672
*
673673
* @throws \LogicException if the in() method has not been called
674674
*/

0 commit comments

Comments
 (0)