diff --git a/src/Finder.php b/src/Finder.php index 2c5dbbeefb7..fadf1829d10 100644 --- a/src/Finder.php +++ b/src/Finder.php @@ -38,6 +38,7 @@ public function getIterator() $this->name('~^'.$configFilenameRegex.'$~is'); $fx = \Closure::bind(function () { // rebound function can be called without assigment as of PHP 7 + // @phpstan-ignore-next-line, see https://github.com/phpstan/phpstan/issues/4808 return $this->ignore & static::IGNORE_DOT_FILES; }, $this, parent::class); $isDotFilesIgnored = $fx();