This commit is contained in:
TomasVotruba 2018-01-26 10:27:57 +01:00
parent bdb3eff4cf
commit 7033c28d36
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ abstract class AbstractRector extends NodeVisitorAbstract implements RectorInter
}
/**
* @return null|int|Node
* @return int|Node
*/
public function leaveNode(Node $node)
{

View File

@ -91,7 +91,7 @@ final class FluentReplaceRector extends AbstractRector
}
if ($node instanceof MethodCall) {
// metod call to prepend
// method call to prepend
/** @var Node $parentVarName */
$parentVarName = $node->var->var;
$parentVarName->setAttribute(Attribute::ORIGINAL_NODE, null);