Skip to content

[Finder] Add type on iterator so that IDE will know what finder iterator returns #16965

@aurimasniekis

Description

@aurimasniekis

Maybe it's possible to add phpdoc to suggest type for iterator? Because I hate every time to write like this when using Symfony Finder

/** @var SplFileInfo $file */
foreach ($finder as $file) {
...
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions