Skip to content

Commit 4241667

Browse files
staabmondrejmirtes
authored andcommitted
Make result-cache independent from configs include order
1 parent 2cb2f07 commit 4241667

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/Analyser/ResultCache/ResultCacheManager.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ private function isMetaDifferent(array $cachedMeta, array $currentMeta): bool
264264
{
265265
$projectConfig = $currentMeta['projectConfig'];
266266
if ($projectConfig !== null) {
267+
ksort($currentMeta['projectConfig']);
268+
267269
$currentMeta['projectConfig'] = Neon::encode($currentMeta['projectConfig']);
268270
}
269271

@@ -728,6 +730,8 @@ private function getMeta(array $allAnalysedFiles, ?array $projectConfigArray): a
728730
unset($projectConfigArray['parameters']['memoryLimitFile']);
729731
unset($projectConfigArray['parameters']['pro']);
730732
unset($projectConfigArray['parametersSchema']);
733+
734+
ksort($projectConfigArray);
731735
}
732736

733737
return [

0 commit comments

Comments
 (0)