Skip to content

Commit

Permalink
renamed php-cs-fixer config file and use contructor PhpCsFixer\Config…
Browse files Browse the repository at this point in the history
… class

Deprecaton example:

```
Detected deprecations in use:
- Configuration file `.php_cs` is deprecated, rename to `.php-cs-fixer.php`.
- PhpCsFixer\Config::create is deprecated since 2.17 and will be removed in 3.0, use the constructor instead.
```
  • Loading branch information
Ivanov-Anton authored and gigorok committed Jun 17, 2022
1 parent 9dd664f commit 951bc3a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
__DIR__.'/tests'
]);

return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
])->setFinder($finder);

$config = new PhpCsFixer\Config();
return $config->setRules(['@Symfony' => true])
->setFinder($finder);

0 comments on commit 951bc3a

Please sign in to comment.