Skip to content

Commit 0b8cb54

Browse files
committed
allow with description
1 parent 0f32100 commit 0b8cb54

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

rules/DeadCode/PhpDoc/DeadVarTagValueNodeAnalyzer.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ public function __construct(
3232

3333
public function isDead(VarTagValueNode $varTagValueNode, Property|ClassConst|Expression $node): bool
3434
{
35-
if (! $node instanceof Expression) {
36-
if (! $node->type instanceof Node) {
37-
return false;
38-
}
35+
if (! $node instanceof Expression && ! $node->type instanceof Node) {
36+
return false;
37+
}
3938

40-
if ($varTagValueNode->description !== '') {
41-
return false;
42-
}
39+
if ($varTagValueNode->description !== '') {
40+
return false;
4341
}
4442

4543
$targetNode = $node instanceof Expression

0 commit comments

Comments
 (0)