1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

phpdoc issues

This commit is contained in:
orklah 2021-12-27 20:26:29 +01:00
parent 2499e02465
commit 094ffb36f9
6 changed files with 4 additions and 10 deletions

View File

@ -67,10 +67,6 @@ class FunctionCasingChecker implements AfterFunctionCallAnalysisInterface, After
}
}
/**
* @param non-empty-string $function_id
* @param FileManipulation[] $file_replacements
*/
public static function afterFunctionCallAnalysis(AfterFunctionCallAnalysisEvent $event): void
{
$expr = $event->getExpr();

View File

@ -17,8 +17,6 @@ class EchoChecker implements AfterStatementAnalysisInterface
/**
* Called after a statement has been checked
*
* @param FileManipulation[] $file_replacements
*
* @return null|false
*/
public static function afterStatementAnalysis(AfterStatementAnalysisEvent $event): ?bool {

View File

@ -658,7 +658,7 @@ class ArgumentAnalyzer
}
/**
* @param TKeyedArray|TArray|TList|TClassStringMap $unpacked_atomic_array
* @param TKeyedArray|TArray|TList|TClassStringMap|null $unpacked_atomic_array
* @return null|false
* @psalm-suppress ComplexMethod
*/

View File

@ -60,7 +60,7 @@ use function strtolower;
class AtomicMethodCallAnalyzer extends CallAnalyzer
{
/**
* @param TNamedObject|TTemplateParam $static_type
* @param TNamedObject|TTemplateParam|null $static_type
*
* @psalm-suppress ComplexMethod it's really complex, but unavoidably so
*/

View File

@ -48,7 +48,7 @@ use function strtolower;
class ExistingAtomicMethodCallAnalyzer extends CallAnalyzer
{
/**
* @param TNamedObject|TTemplateParam $static_type
* @param TNamedObject|TTemplateParam|null $static_type
* @param list<PhpParser\Node\Arg> $args
*/
public static function analyze(

View File

@ -37,7 +37,7 @@ use function strtolower;
class MethodCallReturnTypeFetcher
{
/**
* @param TNamedObject|TTemplateParam $static_type
* @param TNamedObject|TTemplateParam|null $static_type
* @param list<PhpParser\Node\Arg> $args
*/
public static function fetch(