From 7e54c5172dbcbb025c11bb54a7a6d8d18c6ef4b3 Mon Sep 17 00:00:00 2001 From: Tomasz Mlynski Date: Mon, 6 Dec 2021 17:59:43 +0100 Subject: [PATCH] Deprecate unused methods --- psalm.xml.dist | 8 ++++++++ src/Psalm/Internal/Analyzer/ProjectAnalyzer.php | 1 + src/Psalm/Internal/Provider/ParserCacheProvider.php | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/psalm.xml.dist b/psalm.xml.dist index bcf32dfb3..a29522a71 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -111,6 +111,12 @@ + + + + + + @@ -128,6 +134,8 @@ + + diff --git a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php index bce31106c..ef023268c 100644 --- a/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php @@ -1068,6 +1068,7 @@ class ProjectAnalyzer /** * @return list + * @deprecated going to be removed in Psalm 5 */ private function getAllFiles(Config $config): array { diff --git a/src/Psalm/Internal/Provider/ParserCacheProvider.php b/src/Psalm/Internal/Provider/ParserCacheProvider.php index df753a088..9706cc6d8 100644 --- a/src/Psalm/Internal/Provider/ParserCacheProvider.php +++ b/src/Psalm/Internal/Provider/ParserCacheProvider.php @@ -349,6 +349,9 @@ class ParserCacheProvider return $removed_count; } + /** + * @deprecated going to be removed in Psalm 5 + */ public function processSuccessfulRun(): void { $cache_directory = Config::getInstance()->getCacheDirectory(); @@ -376,6 +379,7 @@ class ParserCacheProvider /** * @param array $file_names + * @deprecated going to be removed in Psalm 5 */ public function touchParserCaches(array $file_names, int $min_time): void {