Skip to content

Commit

Permalink
Merge pull request #116 from VincentLanglet/VincentLanglet-patch-1
Browse files Browse the repository at this point in the history
🐛 Fix config for files
  • Loading branch information
VincentLanglet authored Feb 17, 2020
2 parents 4179c2e + 9a06beb commit 2178312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwigCS/src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2178312

Please sign in to comment.