1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +01:00

Deprecate unused methods

This commit is contained in:
Tomasz Mlynski 2021-12-06 17:59:43 +01:00
parent 0fcad43581
commit 7e54c5172d
No known key found for this signature in database
GPG Key ID: 665B4A17698A1954
3 changed files with 13 additions and 0 deletions

View File

@ -111,6 +111,12 @@
</errorLevel> </errorLevel>
</PossiblyUnusedProperty> </PossiblyUnusedProperty>
<UnusedMethod>
<errorLevel type="suppress">
<referencedMethod name="Psalm\Internal\Analyzer\ProjectAnalyzer::getAllFiles"/>
</errorLevel>
</UnusedMethod>
<PossiblyUnusedMethod> <PossiblyUnusedMethod>
<errorLevel type="suppress"> <errorLevel type="suppress">
<directory name="src/Psalm/Plugin"/> <directory name="src/Psalm/Plugin"/>
@ -128,6 +134,8 @@
<referencedMethod name="Psalm\Codebase::createClassLikeStorage"/> <referencedMethod name="Psalm\Codebase::createClassLikeStorage"/>
<referencedMethod name="Psalm\Codebase::isVariadic"/> <referencedMethod name="Psalm\Codebase::isVariadic"/>
<referencedMethod name="Psalm\Codebase::getMethodReturnsByRef"/> <referencedMethod name="Psalm\Codebase::getMethodReturnsByRef"/>
<referencedMethod name="Psalm\Internal\Provider\ParserCacheProvider::processSuccessfulRun"/>
<referencedMethod name="Psalm\Internal\Provider\ParserCacheProvider::touchParserCaches"/>
</errorLevel> </errorLevel>
</PossiblyUnusedMethod> </PossiblyUnusedMethod>

View File

@ -1068,6 +1068,7 @@ class ProjectAnalyzer
/** /**
* @return list<string> * @return list<string>
* @deprecated going to be removed in Psalm 5
*/ */
private function getAllFiles(Config $config): array private function getAllFiles(Config $config): array
{ {

View File

@ -349,6 +349,9 @@ class ParserCacheProvider
return $removed_count; return $removed_count;
} }
/**
* @deprecated going to be removed in Psalm 5
*/
public function processSuccessfulRun(): void public function processSuccessfulRun(): void
{ {
$cache_directory = Config::getInstance()->getCacheDirectory(); $cache_directory = Config::getInstance()->getCacheDirectory();
@ -376,6 +379,7 @@ class ParserCacheProvider
/** /**
* @param array<string> $file_names * @param array<string> $file_names
* @deprecated going to be removed in Psalm 5
*/ */
public function touchParserCaches(array $file_names, int $min_time): void public function touchParserCaches(array $file_names, int $min_time): void
{ {