Skip to content

Commit

Permalink
Fix: Adjust configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 2, 2023
1 parent 4487073 commit 57eab89
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@

$license->save();

$config = PhpCsFixer\Config\Factory::fromRuleSet(new PhpCsFixer\Config\RuleSet\Php80($license->header()), [
'declare_strict_types' => false,
'final_class' => false,
'void_return' => false,
]);
$ruleSet = PhpCsFixer\Config\RuleSet\Php80::create()
->withHeader($license->header())
->withRules(PhpCsFixer\Config\Rules::fromArray([
'declare_strict_types' => false,
'final_class' => false,
'void_return' => false,
]));

$config = PhpCsFixer\Config\Factory::fromRuleSet($ruleSet);

$config->getFinder()
->ignoreDotFiles(false)
Expand Down

0 comments on commit 57eab89

Please sign in to comment.