Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 14, 2023
1 parent 3e865a5 commit 2331300
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ private function shouldSkipParam(Param $param, ClassMethod|Function_ $functionLi

$isParamModified = false;

$this->traverseNodesWithCallable($functionLike->getStmts(), function (Node $node) use (
if ($functionLike->stmts === null) {
return true;
}

$this->traverseNodesWithCallable($functionLike->stmts, function (Node $node) use (
$paramName,
&$isParamModified
): int|null {
Expand Down

0 comments on commit 2331300

Please sign in to comment.