File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
setup/src/Magento/Setup/Module/Di/Compiler/Config Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1515
1616/**
1717 * Class Reader
18+ *
1819 * @package Magento\Setup\Module\Di\Compiler\Config
1920 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2021 */
@@ -84,7 +85,7 @@ public function generateCachePerScope(
8485 }
8586
8687 $ config = [];
87-
88+
8889 $ this ->fillThirdPartyInterfaces ($ areaConfig , $ definitionsCollection );
8990 $ config ['arguments ' ] = $ this ->getConfigForScope ($ definitionsCollection , $ areaConfig );
9091
@@ -98,6 +99,12 @@ public function generateCachePerScope(
9899 foreach (array_keys ($ areaConfig ->getVirtualTypes ()) as $ virtualType ) {
99100 $ config ['instanceTypes ' ][$ virtualType ] = $ areaConfig ->getInstanceType ($ virtualType );
100101 }
102+
103+ // sort configuration to have it in the same order on every build
104+ ksort ($ config ['arguments ' ]);
105+ ksort ($ config ['preferences ' ]);
106+ ksort ($ config ['instanceTypes ' ]);
107+
101108 return $ config ;
102109 }
103110
You can’t perform that action at this time.
0 commit comments