Skip to content

Commit

Permalink
PHPDoc: address multiple variables defined in one @param
Browse files Browse the repository at this point in the history
  • Loading branch information
Muqsit authored and ondrejmirtes committed Apr 5, 2024
1 parent df00074 commit 74bc369
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion issue-bot/src/Playground/TabCreator.php
Expand Up @@ -15,7 +15,7 @@ class TabCreator
{

/**
* @param array<int, list<PlaygroundError>> $versionedErrors $versionedErrors
* @param array<int, list<PlaygroundError>> $versionedErrors
* @return list<PlaygroundResultTab>
*/
public function create(array $versionedErrors): array
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Classes/InstantiationRule.php
Expand Up @@ -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<int, array{string, bool}>
*/
private function getClassNames(Node $node, Scope $scope): array
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPStan/Analyser/data/array-filter.php
Expand Up @@ -11,7 +11,7 @@ function withoutAnyArgs(): void
}

/**
* @param $var1 $mixed
* @param mixed $var1
*/
function withMixedInsteadOfArray($var1): void
{
Expand Down

0 comments on commit 74bc369

Please sign in to comment.