8000 minor #41243 Migrate configuration file for PHP CS Fixer 2.19/3.0 (de… · symfony/symfony@518badd · GitHub
[go: up one dir, main page]

Skip to content

Commit 518badd

Browse files
committed
minor #41243 Migrate configuration file for PHP CS Fixer 2.19/3.0 (derrabus)
This PR was merged into the 4.4 branch. Discussion ---------- Migrate configuration file for PHP CS Fixer 2.19/3.0 | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A This PR suggests to rename the PHP CS Fixer configuration file as expected by version 2.19 and 3.0. I don't know what version Fabbot is currently running, but as soon as it is updated to 2.19, we can merge this PR. Commits ------- 1462a32 Migrate configuration file for PHP CS Fixer 2.19/3.0
2 parents eb3a3c1 + 1462a32 commit 518badd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitignore

-1Lines changed: 2 additions & 1 deletion
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 renamed to .php-cs-fixer.dist.php

Lines changed: 3 additions & 2 deletions
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)
0