Skip to content

Commit 4d710ad

Browse files
Merge branch '8.5' into 9.6
2 parents 2af97f4 + 59f3dc2 commit 4d710ad

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# PHP-CS-Fixer
1616
/.php-cs-fixer.php
17-
/.php-cs-fixer.cache*
17+
/.php-cs-fixer.cache
1818

1919
# Psalm
2020
/.psalm/cache

.php-cs-fixer.dist.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,6 @@
335335
'whitespace_after_comma_in_array' => true,
336336
]);
337337

338-
$branch = @trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'));
339-
340-
if (!empty($branch)) {
341-
$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache.' . $branch);
342-
}
338+
$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache/' . sha1(@trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'))));
343339

344340
return $config;

0 commit comments

Comments
 (0)