Skip to content

Commit

Permalink
Finder extends PhpCsFixerFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jun 30, 2024
1 parent df99f80 commit d1f2038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ $localRules = [
'CustomFixer/rule_2' => true,
];

$finder = Finder::laravel(__DIR__.'Foo')
$finder = Finder::create()
->in(__DIR__)
->ignoreDotFiles(false)
->exclude(['Bar'])
->notName('*.foo.php')
Expand Down
2 changes: 1 addition & 1 deletion src/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use PhpCsFixer\Finder as PhpCsFixerFinder;

class Finder
class Finder extends PhpCsFixerFinder
{
/**
* @param null|string|list<string> $baseDir
Expand Down

0 comments on commit d1f2038

Please sign in to comment.