Skip to content

Commit dfd9969

Browse files
committed
Fix compatibility with php-cs-fixer 3.90.0, do not rely on PhpCsFixer finder
1 parent 36fb7f8 commit dfd9969

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Fixers.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
namespace ErickSkrauch\PhpCsFixer;
55

66
use IteratorAggregate;
7-
use PhpCsFixer\Finder;
87
use PhpCsFixer\Fixer\FixerInterface;
98
use ReflectionClass;
9+
use Symfony\Component\Finder\Finder;
1010
use Traversable;
1111

1212
/**
@@ -19,7 +19,10 @@ final class Fixers implements IteratorAggregate {
1919
*/
2020
public function getIterator(): Traversable {
2121
$finder = new Finder();
22-
$finder->in(__DIR__ . '/Fixer')->name('*.php');
22+
$finder->files()
23+
->name('*.php')
24+
->in(__DIR__ . '/Fixer')
25+
->exclude('vendor');
2326
$classes = [];
2427
/** @var \Symfony\Component\Finder\SplFileInfo $file */
2528
foreach ($finder as $file) {

0 commit comments

Comments
 (0)