Skip to content

Commit

Permalink
Fix node PHPDoc type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm authored and ondrejmirtes committed Dec 15, 2022
1 parent 9417e86 commit 0378682
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4087,7 +4087,7 @@ private function processTraitUse(Node\Stmt\TraitUse $node, MutatingScope $classS
}

/**
* @param Node[]|Node|scalar $node
* @param Node[]|Node|scalar|null $node
* @param Node\Stmt\TraitUseAdaptation[] $adaptations
* @param callable(Node $node, Scope $scope): void $nodeCallback
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/UnusedFunctionParametersCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getUnusedParameters(
}

/**
* @param Node[]|Node|scalar $node
* @param Node[]|Node|scalar|null $node
* @return string[]
*/
private function getUsedVariables(Scope $scope, $node): array
Expand Down
2 changes: 1 addition & 1 deletion src/Type/FileTypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ private function getTypeAliasesMap(?Doc $docComment): array
}

/**
* @param Node[]|Node|scalar $node
* @param Node[]|Node|scalar|null $node
* @param Closure(Node $node): mixed $nodeCallback
* @param Closure(Node $node, mixed $callbackResult): void $endNodeCallback
*/
Expand Down

0 comments on commit 0378682

Please sign in to comment.