Skip to content

Commit 4979e91

Browse files
minor #25104 [Lock][Process][FrameworkBundle] fix tests (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [Lock][Process][FrameworkBundle] fix tests | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - When running tests locally, I have several failures. This fixes them. Commits ------- 878b08c [Lock][Process][FrameworkBundle] fix tests
2 parents 7089f49 + d10964f commit 4979e91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,7 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
11861186
return 2 === substr_count($file->getBasename(), '.') && preg_match('/\.\w+$/', $file->getBasename());
11871187
})
11881188
->in($dirs)
1189+
->sortByName()
11891190
;
11901191

11911192
foreach ($finder as $file) {
@@ -1306,7 +1307,7 @@ private function registerValidatorMapping(ContainerBuilder $container, array $co
13061307

13071308
private function registerMappingFilesFromDir($dir, callable $fileRecorder)
13081309
{
1309-
foreach (Finder::create()->followLinks()->files()->in($dir)->name('/\.(xml|ya?ml)$/') as $file) {
1310+
foreach (Finder::create()->followLinks()->files()->in($dir)->name('/\.(xml|ya?ml)$/')->sortByName() as $file) {
13101311
$fileRecorder($file->getExtension(), $file->getRealPath());
13111312
}
13121313
}

0 commit comments

Comments
 (0)