Skip to content

Commit

Permalink
extract method
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Apr 27, 2018
1 parent 82dd70e commit d755e75
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/AopTemplateConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,18 @@ public function enterNode(Node $node)

return $node;
}
// change ReflectiveMethodInvocation 2nd parameter

return $this->updateReflectiveMethodInvocation2ndParam($node);
}

private function updateReflectiveMethodInvocation2ndParam(Node $node) : Node
{
if ($node instanceof MethodCall && $node->name === 'proceed') {
$node->var->args[2] = $this->proceedArg;

return $node;
}

return $node;
}
}

0 comments on commit d755e75

Please sign in to comment.