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 a62b354 commit c6e579eCopy full SHA for c6e579e
rules/DeadCode/Rector/Property/RemoveUselessVarTagRector.php
@@ -5,7 +5,6 @@
5
namespace Rector\DeadCode\Rector\Property;
6
7
use PhpParser\Node;
8
-use PhpParser\Node\Expr\Assign;
9
use PhpParser\Node\Stmt\ClassConst;
10
use PhpParser\Node\Stmt\Expression;
11
use PhpParser\Node\Stmt\Property;
@@ -64,10 +63,6 @@ public function getNodeTypes(): array
64
63
*/
65
public function refactor(Node $node): ?Node
66
{
67
- if ($node instanceof Expression && ! $node->expr instanceof Assign) {
68
- return null;
69
- }
70
-
71
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node);
72
73
$hasChanged = $this->varTagRemover->removeVarTagIfUseless($phpDocInfo, $node);
0 commit comments