File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 16
16
class ResultCacheManager
17
17
{
18
18
19
- private const CACHE_VERSION = 'v5-exportedNodes ' ;
19
+ private const CACHE_VERSION = 'v6-installed ' ;
20
20
21
21
private ExportedNodeFetcher $ exportedNodeFetcher ;
22
22
@@ -552,6 +552,7 @@ private function getMeta(?array $projectConfigArray): array
552
552
'projectConfig ' => $ projectConfigArray ,
553
553
'analysedPaths ' => $ this ->analysedPaths ,
554
554
'composerLocks ' => $ this ->getComposerLocks (),
555
+ 'composerInstalled ' => $ this ->getComposerInstalled (),
555
556
'cliAutoloadFile ' => $ this ->cliAutoloadFile ,
556
557
'phpExtensions ' => $ extensions ,
557
558
'stubFiles ' => $ this ->getStubFiles (),
@@ -604,6 +605,24 @@ private function getComposerLocks(): array
604
605
return $ locks ;
605
606
}
606
607
608
+ /**
609
+ * @return array<string, string>
610
+ */
611
+ private function getComposerInstalled (): array
612
+ {
613
+ $ hashes = [];
614
+ foreach ($ this ->composerAutoloaderProjectPaths as $ autoloadPath ) {
615
+ $ filePath = $ autoloadPath . '/vendor/composer/installed.php ' ;
616
+ if (!is_file ($ filePath )) {
617
+ continue ;
618
+ }
619
+
620
+ $ hashes [$ filePath ] = $ this ->getFileHash ($ filePath );
621
+ }
622
+
623
+ return $ hashes ;
624
+ }
625
+
607
626
/**
608
627
* @return array<string, string>
609
628
*/
You can’t perform that action at this time.
0 commit comments