diff --git a/.gitignore b/.gitignore index 011328ed..0723541d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ /analysis /vendor/ /phpunit.xml -/.php_cs.cache ## IDE support *.buildpath diff --git a/.php_cs.dist b/.php_cs.dist index 5a494b87..29b85d77 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -9,6 +9,7 @@ $finder = PhpCsFixer\Finder::create() return PhpCsFixer\Config::create() ->setRiskyAllowed(true) ->setFinder($finder) + ->setCacheFile(sys_get_temp_dir() . '/php-cs-fixer' . preg_replace('~\W~', '-', __DIR__)) ->setRules([ 'align_multiline_comment' => true, 'array_syntax' => ['syntax' => 'short'],