mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 09:19:40 +01:00
Deprecate unused methods
This commit is contained in:
parent
0fcad43581
commit
7e54c5172d
@ -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>
|
||||||
|
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user