@@ -189,8 +189,8 @@ private function resolvePhpDocStringToDocNode(string $phpDocString): PhpDocNode
189189 private function getNameScopeMap (string $ fileName ): array
190190 {
191191 if (!isset ($ this ->memoryCache [$ fileName ])) {
192- $ cacheKey = sprintf ('%s-phpdocstring ' , $ fileName );
193- $ variableCacheKey = sprintf ('%s-%s-v17-require-once ' , implode (', ' , array_map (static fn (array $ file ): string => sprintf ('%s-%d ' , $ file ['filename ' ], $ file ['modifiedTime ' ]), $ this ->getCachedDependentFilesWithTimestamps ($ fileName ))), $ this ->phpVersion ->getVersionString ());
192+ $ cacheKey = sprintf ('%s-phpdocstring-v17-require-once ' , $ fileName );
193+ $ variableCacheKey = sprintf ('%s-%s ' , implode (', ' , array_map (static fn (array $ file ): string => sprintf ('%s-%d ' , $ file ['filename ' ], $ file ['modifiedTime ' ]), $ this ->getCachedDependentFilesWithTimestamps ($ fileName ))), $ this ->phpVersion ->getVersionString ());
194194 $ map = $ this ->cache ->load ($ cacheKey , $ variableCacheKey );
195195
196196 if ($ map === null ) {
@@ -633,12 +633,12 @@ private function getNameScopeKey(
633633 */
634634 private function getCachedDependentFilesWithTimestamps (string $ fileName ): array
635635 {
636- $ cacheKey = sprintf ('dependentFilesTimestamps-%s ' , $ fileName );
636+ $ cacheKey = sprintf ('dependentFilesTimestamps-%s-v2-enum ' , $ fileName );
637637 $ fileModifiedTime = filemtime ($ fileName );
638638 if ($ fileModifiedTime === false ) {
639639 $ fileModifiedTime = time ();
640640 }
641- $ variableCacheKey = sprintf ('%d-%s-v2-enum ' , $ fileModifiedTime , $ this ->phpVersion ->getVersionString ());
641+ $ variableCacheKey = sprintf ('%d-%s ' , $ fileModifiedTime , $ this ->phpVersion ->getVersionString ());
642642 /** @var array<array{filename: string, modifiedTime: int}>|null $cachedFilesTimestamps */
643643 $ cachedFilesTimestamps = $ this ->cache ->load ($ cacheKey , $ variableCacheKey );
644644 if ($ cachedFilesTimestamps !== null ) {
0 commit comments