Skip to content

Commit

Permalink
Make result-cache independent from configs include order
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Sep 6, 2023
1 parent 89e5de6 commit b3c8576
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Analyser/ResultCache/ResultCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ private function isMetaDifferent(array $cachedMeta, array $currentMeta): bool
{
$projectConfig = $currentMeta['projectConfig'];
if ($projectConfig !== null) {
ksort($currentMeta['projectConfig']);

$currentMeta['projectConfig'] = Neon::encode($currentMeta['projectConfig']);
}

Expand Down Expand Up @@ -728,6 +730,8 @@ private function getMeta(array $allAnalysedFiles, ?array $projectConfigArray): a
unset($projectConfigArray['parameters']['memoryLimitFile']);
unset($projectConfigArray['parameters']['pro']);
unset($projectConfigArray['parametersSchema']);

ksort($projectConfigArray);
}

return [
Expand Down

0 comments on commit b3c8576

Please sign in to comment.