Skip to content

Commit 0f850b4

Browse files
minor #27545 Update Finder.php (tarlepp)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #27545). Discussion ---------- 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())); ``` | Q | A | ------------- | --- | Branch? | 4.1 <!-- see below --> | Bug fix? | yes (just docblock bug - nothing serious) | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | - <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | - <!-- required for new features --> <!-- Write a short README entry for your feature/bugfix here (replace this comment block.) This will help people understand your PR and can be used as a start of the Doc PR. Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Commits ------- 1100c74 Update Finder.php
2 parents 877af58 + 1100c74 commit 0f850b4

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)