Skip to content

Commit 4f4a40a

Browse files
minor symfony#61696 [Finder] Add better type information using PHPDoc (azjezz)
This PR was merged into the 7.4 branch. Discussion ---------- [Finder] Add better type information using PHPDoc | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no <!-- if yes, also update src/**/CHANGELOG.md --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Issues | N/A <!-- prefix each issue number with "Fix #"; no need to create an issue if none exists, explain below --> | License | MIT Improve type information in `Finder` component Commits ------- 4e8e9c9 chore(finder): add better type information using phpdoc
2 parents a1b9863 + 4e8e9c9 commit 4f4a40a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Finder/Finder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
* @author Fabien Potencier <[email protected]>
3939
*
40-
* @implements \IteratorAggregate<string, SplFileInfo>
40+
* @implements \IteratorAggregate<non-empty-string, SplFileInfo>
4141
*/
4242
class Finder implements \IteratorAggregate, \Countable
4343
{
@@ -657,7 +657,7 @@ public function in(string|array $dirs): static
657657
*
658658
* This method implements the IteratorAggregate interface.
659659
*
660-
* @return \Iterator<string, SplFileInfo>
660+
* @return \Iterator<non-empty-string, SplFileInfo>
661661
*
662662
* @throws \LogicException if the in() method has not been called
663663
*/

0 commit comments

Comments
 (0)