From 094ffb36f9943b3f78198aaad1105c92b02bdc2f Mon Sep 17 00:00:00 2001 From: orklah Date: Mon, 27 Dec 2021 20:26:29 +0100 Subject: [PATCH] phpdoc issues --- examples/plugins/FunctionCasingChecker.php | 4 ---- examples/plugins/composer-based/echo-checker/EchoChecker.php | 2 -- .../Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php | 2 +- .../Expression/Call/Method/AtomicMethodCallAnalyzer.php | 2 +- .../Call/Method/ExistingAtomicMethodCallAnalyzer.php | 2 +- .../Expression/Call/Method/MethodCallReturnTypeFetcher.php | 2 +- 6 files changed, 4 insertions(+), 10 deletions(-) diff --git a/examples/plugins/FunctionCasingChecker.php b/examples/plugins/FunctionCasingChecker.php index 3c8bf8640fc..ca74d9d4a3a 100644 --- a/examples/plugins/FunctionCasingChecker.php +++ b/examples/plugins/FunctionCasingChecker.php @@ -67,10 +67,6 @@ public static function afterMethodCallAnalysis(AfterMethodCallAnalysisEvent $eve } } - /** - * @param non-empty-string $function_id - * @param FileManipulation[] $file_replacements - */ public static function afterFunctionCallAnalysis(AfterFunctionCallAnalysisEvent $event): void { $expr = $event->getExpr(); diff --git a/examples/plugins/composer-based/echo-checker/EchoChecker.php b/examples/plugins/composer-based/echo-checker/EchoChecker.php index 2bb8908d281..c75eac76a56 100644 --- a/examples/plugins/composer-based/echo-checker/EchoChecker.php +++ b/examples/plugins/composer-based/echo-checker/EchoChecker.php @@ -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 { diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php index 4c6edd38264..84b777c7e20 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php @@ -658,7 +658,7 @@ private static function checkFunctionLikeTypeMatches( } /** - * @param TKeyedArray|TArray|TList|TClassStringMap $unpacked_atomic_array + * @param TKeyedArray|TArray|TList|TClassStringMap|null $unpacked_atomic_array * @return null|false * @psalm-suppress ComplexMethod */ diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php index cb1b5fbbf01..33d6d173ac6 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php @@ -60,7 +60,7 @@ 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 */ diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php index 2dc0c0592d5..bfb78e45750 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php @@ -48,7 +48,7 @@ class ExistingAtomicMethodCallAnalyzer extends CallAnalyzer { /** - * @param TNamedObject|TTemplateParam $static_type + * @param TNamedObject|TTemplateParam|null $static_type * @param list $args */ public static function analyze( diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php index 8f09b222b08..b94dc918d63 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php @@ -37,7 +37,7 @@ class MethodCallReturnTypeFetcher { /** - * @param TNamedObject|TTemplateParam $static_type + * @param TNamedObject|TTemplateParam|null $static_type * @param list $args */ public static function fetch(