Skip to content

Commit

Permalink
phpcs: use versioned cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Sep 9, 2017
1 parent 3ba5d17 commit 88e9be1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ $rules = $risky_rules + $symfony_rules + [
'strict_comparison' => false,
];

$cacheFile = sprintf('vendor/php_cs-%s.cache', PhpCsFixer\Console\Application::VERSION);
error_log("Cache: $cacheFile");

return $config
->setRiskyAllowed(true)
->setCacheFile('vendor/php_cs.cache')
->setCacheFile($cacheFile)
->setRules($rules);

0 comments on commit 88e9be1

Please sign in to comment.