Update FilesystemIterator::__construct doc for php 8.2 #2081
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, I'm updating documentation for FilesystemIterator::__construct.
Before PHP 8.2 the
FilesystemIterator::SKIP_DOTS
was always set and couldn't be removed, this changed in PHP 8.2.If you are using the default value for
flags
parameter then everything work as expected, but if you are using any other value you have to addFilesystemIterator::SKIP_DOTS
to maintain old behavior.You can see an example in https://3v4l.org/HrmZ2.
This already provoked a bug (see phingofficial/phing#1685), that's why I also updated documentation in "breaking changes" section.
This change was added in php/php-src@088e547 and as far as I know it's not part of any pull request, I suppose that's the reason it hasn't been documented yet.