Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Finder] Move check for unreachable dirs to hasChildren() #42469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Aug 10, 2021

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? yes
Tickets Fix #42468
License MIT
Doc PR N/A

By moving the check for unreadable directories to hasChildren(), we should remove the need to return empty iterators in getChildren(). This allows us to satisfy the return type added in PHP 8.1.

@derrabus derrabus force-pushed the bugfix/move-children-check branch from 5b8cf5b to b637b21 Compare August 10, 2021 19:23
@derrabus derrabus added this to the 5.4 milestone Aug 10, 2021
@nicolas-grekas
Copy link
Member

Oops, I missed this one and merged #42736 instead.

@derrabus
Copy link
Member Author

🤷‍♂️

@derrabus derrabus deleted the bugfix/move-children-check branch August 25, 2021 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return type of RecursiveDirectoryIterator::getChildren() is too wide
3 participants