lint/php-8.2/add-skip-dots-flag
In the modernize set. Safe fix. Gated by php-8.2.
What it does
Prior PHP 8.2 FilesystemIterator::SKIP_DOTS was always set and could not be removed, therefore FilesystemIterator::SKIP_DOTS is added in order to keep this behaviour
Configuration
[lint.rules]
"php-8.2/add-skip-dots-flag" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
FilesystemIteratorSkipDots(rector)