Skip to content

Commit 297586d

Browse files
committed
Remove unnecessary backward compatibility
Did not think that new version of PHPStan invalidates result cache anyway.
1 parent 4bde072 commit 297586d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Analyser/ResultCache/ResultCacheManager.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,6 @@ private function isMetaDifferent(array $cachedMeta, array $currentMeta): bool
319319
$currentMeta['projectConfig'] = Neon::encode($currentMeta['projectConfig']);
320320
}
321321

322-
// Do not invalidate result cache generated before introducing support for result cache meta extensions
323-
if (!isset($currentMeta['phpstanExtensions'])) {
324-
$currentMeta['phpstanExtensions'] = [];
325-
}
326-
327322
return $cachedMeta !== $currentMeta;
328323
}
329324

0 commit comments

Comments
 (0)