Skip to content

Commit 9c2eaf4

Browse files
Use branch information from composer.json
1 parent 85402a8 commit 9c2eaf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.php-cs-fixer.dist.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,6 @@
315315
'whitespace_after_comma_in_array' => true,
316316
]);
317317

318-
$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache/' . sha1(@trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'))));
318+
$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache/' . json_decode((string) @file_get_contents('composer.json'), true)["extra"]["branch-alias"]["dev-main"] ?? 'unknown');
319319

320320
return $config;

0 commit comments

Comments
 (0)