remove unused origin nuller

This commit is contained in:
Tomas Votruba 2019-02-04 15:05:18 +01:00
parent b98213de1f
commit d722544d73

View File

@ -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;
}
}