PhpMigration\Changes\v5dot4\IncompByReference::isCallTimePassByRef PHP Method

isCallTimePassByRef() protected method

Duplicated with same method in Changes/v5dot3/Deprecated.php
protected isCallTimePassByRef ( $node )
    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;
    }