Skip to content

Commit 1462a32

Browse files
committed
Migrate configuration file for PHP CS Fixer 2.19/3.0
1 parent dffdc71 commit 1462a32

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
vendor/
22
composer.lock
33
phpunit.xml
4-
.php_cs.cache
4+
.php-cs-fixer.cache
5+
.php-cs-fixer.php
56
.phpunit.result.cache
67
composer.phar
78
package.tar

.php_cs.dist .php-cs-fixer.dist.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
exit(0);
55
}
66

7-
return PhpCsFixer\Config::create()
7+
return (new PhpCsFixer\Config())
88
->setRules([
99
'@PHP71Migration' => true,
1010
'@PHPUnit75Migration:risky' => true,
@@ -14,7 +14,7 @@
1414
])
1515
->setRiskyAllowed(true)
1616
->setFinder(
17-
PhpCsFixer\Finder::create()
17+
(new PhpCsFixer\Finder())
1818
->in(__DIR__.'/src')
1919
->append([__FILE__])
2020
->notPath('#/Fixtures/#')
@@ -39,4 +39,5 @@
3939
->notPath('Symfony/Component/Debug/Tests/DebugClassLoaderTest.php')
4040
->notPath('Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php')
4141
)
42+
->setCacheFile('.php-cs-fixer.cache')
4243
;

0 commit comments

Comments
 (0)