minor #21840 [Config] Fix associative sorting in FileLoader (nicolas-grekas)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[Config] Fix associative sorting in FileLoader

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

To make master green again :)

Commits
-------

97a69d9e6b [Config] Fix associative sorting in FileLoader
This commit is contained in:
Fabien Potencier 2017-03-02 12:13:33 -08:00
commit 9e66aaf7a6

View File

@ -136,7 +136,7 @@ abstract class FileLoader extends Loader
),
\RecursiveIteratorIterator::LEAVES_ONLY
));
usort($files, function (\SplFileInfo $a, \SplFileInfo $b) {
uasort($files, function (\SplFileInfo $a, \SplFileInfo $b) {
return (string) $a > (string) $b ? 1 : -1;
});