mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +01:00
Deprecate unused methods
This commit is contained in:
parent
0fcad43581
commit
7e54c5172d
@ -111,6 +111,12 @@
|
||||
</errorLevel>
|
||||
</PossiblyUnusedProperty>
|
||||
|
||||
<UnusedMethod>
|
||||
<errorLevel type="suppress">
|
||||
<referencedMethod name="Psalm\Internal\Analyzer\ProjectAnalyzer::getAllFiles"/>
|
||||
</errorLevel>
|
||||
</UnusedMethod>
|
||||
|
||||
<PossiblyUnusedMethod>
|
||||
<errorLevel type="suppress">
|
||||
<directory name="src/Psalm/Plugin"/>
|
||||
@ -128,6 +134,8 @@
|
||||
<referencedMethod name="Psalm\Codebase::createClassLikeStorage"/>
|
||||
<referencedMethod name="Psalm\Codebase::isVariadic"/>
|
||||
<referencedMethod name="Psalm\Codebase::getMethodReturnsByRef"/>
|
||||
<referencedMethod name="Psalm\Internal\Provider\ParserCacheProvider::processSuccessfulRun"/>
|
||||
<referencedMethod name="Psalm\Internal\Provider\ParserCacheProvider::touchParserCaches"/>
|
||||
</errorLevel>
|
||||
</PossiblyUnusedMethod>
|
||||
|
||||
|
@ -1068,6 +1068,7 @@ class ProjectAnalyzer
|
||||
|
||||
/**
|
||||
* @return list<string>
|
||||
* @deprecated going to be removed in Psalm 5
|
||||
*/
|
||||
private function getAllFiles(Config $config): array
|
||||
{
|
||||
|
@ -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<string> $file_names
|
||||
* @deprecated going to be removed in Psalm 5
|
||||
*/
|
||||
public function touchParserCaches(array $file_names, int $min_time): void
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user