Skip to content

Commit

Permalink
Fix: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Sep 18, 2023
1 parent 6a45bc8 commit 3bdcded
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -129,8 +129,7 @@ file headers will be added to PHP files, for example:

use Ergebnis\PhpCsFixer\Config;

-$ruleSet = Config\RuleSet\Php82::create();
+$ruleSet = Config\RuleSet\Php82::create()->withHeader($header);
$ruleSet = Config\RuleSet\Php82::create();

-$config = Config\Factory::fromRuleSet($ruleSet);
+$config = Config\Factory::fromRuleSet($ruleSet, Config\Rules::fromArray([
Expand Down

0 comments on commit 3bdcded

Please sign in to comment.