Skip to content

Commit

Permalink
Fix: Give non-distributable configuration files priority
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed May 19, 2022
1 parent 33888b3 commit f71009e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Config/ConfigResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ private function computeConfigFiles()

return [
$configDir.\DIRECTORY_SEPARATOR.'.twig_cs.php',
$configDir.\DIRECTORY_SEPARATOR.'.twig_cs.dist.php',
$configDir.\DIRECTORY_SEPARATOR.'.twig_cs',
$configDir.\DIRECTORY_SEPARATOR.'.twig_cs.dist.php',
$configDir.\DIRECTORY_SEPARATOR.'.twig_cs.dist',
];
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Config/ConfigResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,18 @@ public function provideDefaultConfigFileNameAndAvailableDefaultConfigFileNames()
],
],
[
'.twig_cs.dist.php',
'.twig_cs',
[
'.twig_cs',
'.twig_cs.dist',
'.twig_cs.dist.php',
],
],
[
'.twig_cs',
'.twig_cs.dist.php',
[
'.twig_cs',
'.twig_cs.dist',
'.twig_cs.dist.php',
],
],
[
Expand Down

0 comments on commit f71009e

Please sign in to comment.