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 0f32100 commit 0b8cb54Copy full SHA for 0b8cb54
rules/DeadCode/PhpDoc/DeadVarTagValueNodeAnalyzer.php
@@ -32,14 +32,12 @@ public function __construct(
32
33
public function isDead(VarTagValueNode $varTagValueNode, Property|ClassConst|Expression $node): bool
34
{
35
- if (! $node instanceof Expression) {
36
- if (! $node->type instanceof Node) {
37
- return false;
38
- }
+ if (! $node instanceof Expression && ! $node->type instanceof Node) {
+ return false;
+ }
39
40
- if ($varTagValueNode->description !== '') {
41
42
+ if ($varTagValueNode->description !== '') {
43
}
44
45
$targetNode = $node instanceof Expression
0 commit comments