Skip to content

Commit 0378682

Browse files
herndlmondrejmirtes
authored andcommitted
Fix node PHPDoc type hints
1 parent 9417e86 commit 0378682

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4087,7 +4087,7 @@ private function processTraitUse(Node\Stmt\TraitUse $node, MutatingScope $classS
40874087
}
40884088

40894089
/**
4090-
* @param Node[]|Node|scalar $node
4090+
* @param Node[]|Node|scalar|null $node
40914091
* @param Node\Stmt\TraitUseAdaptation[] $adaptations
40924092
* @param callable(Node $node, Scope $scope): void $nodeCallback
40934093
*/

src/Rules/UnusedFunctionParametersCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getUnusedParameters(
5454
}
5555

5656
/**
57-
* @param Node[]|Node|scalar $node
57+
* @param Node[]|Node|scalar|null $node
5858
* @return string[]
5959
*/
6060
private function getUsedVariables(Scope $scope, $node): array

src/Type/FileTypeMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ private function getTypeAliasesMap(?Doc $docComment): array
563563
}
564564

565565
/**
566-
* @param Node[]|Node|scalar $node
566+
* @param Node[]|Node|scalar|null $node
567567
* @param Closure(Node $node): mixed $nodeCallback
568568
* @param Closure(Node $node, mixed $callbackResult): void $endNodeCallback
569569
*/

0 commit comments

Comments
 (0)