Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix node PHPDoc type hints #2053

Merged
merged 1 commit into from Dec 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Analyser/NodeScopeResolver.php
Expand Up @@ -4064,7 +4064,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
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
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