diff --git a/TwigCS/src/Config/Config.php b/TwigCS/src/Config/Config.php index c8fc9bc..d00461d 100644 --- a/TwigCS/src/Config/Config.php +++ b/TwigCS/src/Config/Config.php @@ -37,7 +37,7 @@ public function findFiles(): array $flags = \RecursiveDirectoryIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS; $directoryIterator = new \RecursiveDirectoryIterator($path, $flags); } else { - $directoryIterator = new \RecursiveArrayIterator([$path]); + $directoryIterator = new \RecursiveArrayIterator([new \SplFileInfo($path)]); } $filter = new TwigFileFilter($directoryIterator);