From 9fea1e117556b439069c4601abdc05daf4de3cd4 Mon Sep 17 00:00:00 2001 From: Greg Korba Date: Sat, 4 Jan 2025 12:15:42 +0100 Subject: [PATCH] Sort extensions' metadata by key --- src/Analyser/ResultCache/ResultCacheManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Analyser/ResultCache/ResultCacheManager.php b/src/Analyser/ResultCache/ResultCacheManager.php index 998c4dfbe..7e997503a 100644 --- a/src/Analyser/ResultCache/ResultCacheManager.php +++ b/src/Analyser/ResultCache/ResultCacheManager.php @@ -1059,6 +1059,8 @@ private function getMetaFromPhpStanExtensions(): array $meta[$extension->getKey()] = $extension->getHash(); } + ksort($meta); + return $meta; }