From d722544d73856bf06b8df6a0a33967a33a5de8d6 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 4 Feb 2019 15:05:18 +0100 Subject: [PATCH] remove unused origin nuller --- packages/Php/src/Rector/Property/TypedPropertyRector.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/Php/src/Rector/Property/TypedPropertyRector.php b/packages/Php/src/Rector/Property/TypedPropertyRector.php index 405b59853a8..c942f45a8fb 100644 --- a/packages/Php/src/Rector/Property/TypedPropertyRector.php +++ b/packages/Php/src/Rector/Property/TypedPropertyRector.php @@ -11,7 +11,6 @@ use PhpParser\Node\Scalar\LNumber; use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt\Property; use Rector\NodeTypeResolver\ComplexNodeTypeResolver; -use Rector\NodeTypeResolver\Node\Attribute; use Rector\NodeTypeResolver\Php\VarTypeInfo; use Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\DocBlockAnalyzer; use Rector\Php\PhpTypeSupport; @@ -116,9 +115,6 @@ CODE_SAMPLE if ($this->matchesDocTypeAndDefaultValueType($varTypeInfo, $node)) { $node->type = $varTypeInfo->getTypeNode(); - // invoke the print, because only attribute has changed - $node->setAttribute(Attribute::ORIGINAL_NODE, null); - return $node; } }