Skip to content

Commit 7b362bd

Browse files
committed
Move PHP-CS-Fixer cache file out of the project to avoid IDE annoyance
1 parent 2c981e4 commit 7b362bd

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/analysis
33
/vendor/
44
/phpunit.xml
5-
/.php_cs.cache
65

76
## IDE support
87
*.buildpath

.php_cs.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $finder = PhpCsFixer\Finder::create()
99
return PhpCsFixer\Config::create()
1010
->setRiskyAllowed(true)
1111
->setFinder($finder)
12+
->setCacheFile(sys_get_temp_dir() . '/php-cs-fixer' . preg_replace('~\W~', '-', __DIR__))
1213
->setRules([
1314
'align_multiline_comment' => true,
1415
'array_syntax' => ['syntax' => 'short'],

0 commit comments

Comments
 (0)