Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 24, 2022
1 parent 12232bc commit d6e5a3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/DeadCode/PhpDoc/DeadReturnTagValueNodeAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ public function isDead(ReturnTagValueNode $returnTagValueNode, FunctionLike $fun
if (! $returnTagValueNode->type instanceof BracketsAwareUnionTypeNode) {
return $returnTagValueNode->description === '';
}

if ($this->genericTypeNodeAnalyzer->hasGenericType($returnTagValueNode->type)) {
return false;
}

if ($this->hasTruePseudoType($returnTagValueNode->type)) {
return false;
}

return $returnTagValueNode->description === '';
}

Expand Down

0 comments on commit d6e5a3d

Please sign in to comment.