Skip to content

Commit 9254b18

Browse files
doc: update readme following major upgrade to php-cs-fixer 3
1 parent 22d8621 commit 9254b18

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,32 @@ $ composer require --dev m6web/php-cs-fixer-config
1414

1515
### Configuration
1616

17-
Create a configuration file `.php_cs` in the root of your project:
17+
Create a configuration file `.php-cs-fixer.dist.php` in the root of your project:
1818

1919
```php
2020
<?php
2121

22-
$config = new M6Web\CS\Config\Php72;
22+
$finder = PhpCsFixer\Finder::create()
23+
->in(
24+
[
25+
__DIR__.'/src',
26+
__DIR__.'/tests',
27+
]
28+
);
2329

24-
$config->getFinder()
25-
->in([
26-
__DIR__.'/src'
27-
])->exclude([
28-
'Tests'
29-
]);
30+
$config = new M6Web\CS\Config\BedrockStreaming();
31+
$config->setFinder($finder);
3032

3133
return $config;
3234
```
3335

3436
### Git
3537

36-
Add `.php_cs.cache` (this is the cache file created by `php-cs-fixer`) to `.gitignore`:
38+
Add `.php-cs-fixer.cache` (this is the cache file created by `php-cs-fixer`) to `.gitignore`:
3739

3840
```
3941
vendor/
40-
.php_cs.cache
42+
.php-cs-fixer.cache
4143
```
4244

4345
### Makefile
@@ -81,7 +83,7 @@ $ make cs-ci
8183
8284
## Credits
8385
84-
Developed by [M6Web](http://tech.m6web.fr/), inspired by [refinery29/php-cs-fixer-config](https://github.com/refinery29/php-cs-fixer-config).
86+
Developed by [Bedrock Streaming](https://tech.bedrockstreaming.com), inspired by [refinery29/php-cs-fixer-config](https://github.com/refinery29/php-cs-fixer-config).
8587
8688
## License
8789

0 commit comments

Comments
 (0)