Skip to content

Commit 264a20d

Browse files
authored
Merge pull request #4 from pestphp/feature/php-cs-fixer-3
chore: migrate to PHP-CS-Fixer 3.x
2 parents 66eb173 + 7597445 commit 264a20d

3 files changed

Lines changed: 19 additions & 20 deletions

File tree

.gitattributes

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
/art export-ignore
2-
/docs export-ignore
3-
/tests export-ignore
4-
/scripts export-ignore
5-
/.github export-ignore
6-
/.php_cs export-ignore
7-
.editorconfig export-ignore
8-
.gitattributes export-ignore
9-
.gitignore export-ignore
10-
.travis.yml export-ignore
11-
phpstan.neon export-ignore
12-
rector.yaml export-ignore
13-
phpunit.xml export-ignore
14-
CHANGELOG.md export-ignore
15-
CONTRIBUTING.md export-ignore
16-
README.md export-ignore
1+
/art export-ignore
2+
/docs export-ignore
3+
/tests export-ignore
4+
/scripts export-ignore
5+
/.github export-ignore
6+
/.php-cs-fixer.dist.php export-ignore
7+
.editorconfig export-ignore
8+
.gitattributes export-ignore
9+
.gitignore export-ignore
10+
phpstan.neon export-ignore
11+
phpunit.xml export-ignore
12+
CHANGELOG.md export-ignore
13+
CONTRIBUTING.md export-ignore
14+
README.md export-ignore

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ composer.lock
44
/vendor/
55
coverage.xml
66
.phpunit.result.cache
7-
.php_cs.cache
7+
/.php-cs-fixer.php
8+
.php-cs-fixer.cache
89
.temp/coverage.php
910
*.swp
1011
*.swo

.php_cs renamed to .php-cs-fixer.dist.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
$finder = PhpCsFixer\Finder::create()
4-
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests')
54
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
6-
->append(['.php_cs']);
5+
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests')
6+
->append(['.php-cs-fixer.dist.php']);
77

88
$rules = [
99
'@Symfony' => true,
@@ -22,7 +22,7 @@
2222

2323
$rules['increment_style'] = ['style' => 'post'];
2424

25-
return PhpCsFixer\Config::create()
25+
return (new PhpCsFixer\Config())
2626
->setUsingCache(true)
2727
->setRules($rules)
2828
->setFinder($finder);

0 commit comments

Comments
 (0)