lint/php-8.2/add-skip-dots-flag
In the lint-recommended preset and every stricter one. In Rector’s rector/php82 set. Safe fix. Runs only when [php] version is 8.2 or later.
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 behavior
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)