We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eadad28 commit 502bb59Copy full SHA for 502bb59
1 file changed
src/BetterPhpDocParser/PhpDocManipulator/PhpDocTypeChanger.php
@@ -115,7 +115,7 @@ public function changeReturnTypeNode(
115
}
116
117
public function changeParamTypeNode(
118
- ClassMethod $classMethod,
+ FunctionLike $functionLike,
119
PhpDocInfo $phpDocInfo,
120
Param $param,
121
string $paramName,
@@ -129,7 +129,7 @@ public function changeParamTypeNode(
129
$phpDocInfo->addTagValueNode($paramTagValueNode);
130
131
132
- $this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($classMethod);
+ $this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($functionLike);
133
134
135
public function changeReturnType(FunctionLike $functionLike, PhpDocInfo $phpDocInfo, Type $newType): bool
0 commit comments