From 247f815d9f48152e53a84a350906173890554890 Mon Sep 17 00:00:00 2001 From: Muqsit Date: Fri, 5 Apr 2024 00:32:00 +0000 Subject: [PATCH] PHPDoc: address multiple variables defined in one @param --- issue-bot/src/Playground/TabCreator.php | 2 +- src/Rules/Classes/InstantiationRule.php | 2 +- tests/PHPStan/Analyser/data/array-filter.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/issue-bot/src/Playground/TabCreator.php b/issue-bot/src/Playground/TabCreator.php index a74da457a4..544fcb1461 100644 --- a/issue-bot/src/Playground/TabCreator.php +++ b/issue-bot/src/Playground/TabCreator.php @@ -15,7 +15,7 @@ class TabCreator { /** - * @param array> $versionedErrors $versionedErrors + * @param array> $versionedErrors * @return list */ public function create(array $versionedErrors): array diff --git a/src/Rules/Classes/InstantiationRule.php b/src/Rules/Classes/InstantiationRule.php index d70cf95697..7e31e5adcd 100644 --- a/src/Rules/Classes/InstantiationRule.php +++ b/src/Rules/Classes/InstantiationRule.php @@ -222,7 +222,7 @@ private function checkClassName(string $class, bool $isName, Node $node, Scope $ } /** - * @param Node\Expr\New_ $node $node + * @param Node\Expr\New_ $node * @return array */ private function getClassNames(Node $node, Scope $scope): array diff --git a/tests/PHPStan/Analyser/data/array-filter.php b/tests/PHPStan/Analyser/data/array-filter.php index def7caf588..ad12ea6db6 100644 --- a/tests/PHPStan/Analyser/data/array-filter.php +++ b/tests/PHPStan/Analyser/data/array-filter.php @@ -11,7 +11,7 @@ function withoutAnyArgs(): void } /** - * @param $var1 $mixed + * @param mixed $var1 */ function withMixedInsteadOfArray($var1): void {