Skip to content

Commit 502bb59

Browse files
committed
fix
1 parent eadad28 commit 502bb59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/BetterPhpDocParser/PhpDocManipulator/PhpDocTypeChanger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function changeReturnTypeNode(
115115
}
116116

117117
public function changeParamTypeNode(
118-
ClassMethod $classMethod,
118+
FunctionLike $functionLike,
119119
PhpDocInfo $phpDocInfo,
120120
Param $param,
121121
string $paramName,
@@ -129,7 +129,7 @@ public function changeParamTypeNode(
129129
$phpDocInfo->addTagValueNode($paramTagValueNode);
130130
}
131131

132-
$this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($classMethod);
132+
$this->docBlockUpdater->updateRefactoredNodeWithPhpDocInfo($functionLike);
133133
}
134134

135135
public function changeReturnType(FunctionLike $functionLike, PhpDocInfo $phpDocInfo, Type $newType): bool

0 commit comments

Comments
 (0)