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 15
15
16
16
/**
17
17
* Class Reader
18
+ *
18
19
* @package Magento\Setup\Module\Di\Compiler\Config
19
20
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
20
21
*/
@@ -84,7 +85,7 @@ public function generateCachePerScope(
84
85
}
85
86
86
87
$ config = [];
87
-
88
+
88
89
$ this ->fillThirdPartyInterfaces ($ areaConfig , $ definitionsCollection );
89
90
$ config ['arguments ' ] = $ this ->getConfigForScope ($ definitionsCollection , $ areaConfig );
90
91
@@ -98,6 +99,12 @@ public function generateCachePerScope(
98
99
foreach (array_keys ($ areaConfig ->getVirtualTypes ()) as $ virtualType ) {
99
100
$ config ['instanceTypes ' ][$ virtualType ] = $ areaConfig ->getInstanceType ($ virtualType );
100
101
}
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
+
101
108
return $ config ;
102
109
}
103
110
You can’t perform that action at this time.
0 commit comments