protected function isCallTimePassByRef($node)
{
if (!($node instanceof Expr\FuncCall || $node instanceof Expr\StaticCall || $node instanceof Expr\MethodCall)) {
return false;
}
foreach ($node->args as $arg) {
if ($arg->byRef) {
return true;
}
}
return false;
}