Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #18719 Add SplFileInfo array doc on Finder iterator methods so …
…that IDE will known it (Haehnchen) This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #18719). Discussion ---------- Add SplFileInfo array doc on Finder iterator methods so that IDE will known it | Q | A | ------------- | --- | Branch | master | Bug fix | no | New feature | no | BC breaks | no | Deprecations | no | Tests pass | yes | Fixed tickets | #16965 | License | MIT Add support for IDE completion of Finder iterator in userland see #16965, http://stackoverflow.com/questions/37034643/autocomplete-doesnt-work-on-symfonys-splfileinfofinder-method-in-foreach/37055206 Examples: ```php $finder->size()->in()[0]->getContents(); foreach ($finder->size()->in() as $file) { $file->getContents(); } ``` Commits ------- 94b9e44 Add SplFileInfo array doc on Finder iterator methods so that IDE will know what it returns
- Loading branch information
Showing
1 changed file
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters