public function getByReferenceCallArguments($callNode)
    {
        $byReferenceArguments = $callNode->args;
        if (!$this->calleeReflector->supports($callNode)) {
            return $byReferenceArguments;
        }

        $reflection = $this->calleeReflector->reflect($callNode);
        $byReferenceParameterPositions = array_flip($reflection->getByReferenceParameterPositions());
        $byReferenceArguments = array_intersect_key($byReferenceArguments, $byReferenceParameterPositions);

        return $byReferenceArguments;
    }
public function getByReferenceCallArguments($callNode)
    {
        $byReferenceArguments = $callNode->args;
        if (!$this->calleeReflector->supports($callNode)) {
            return $byReferenceArguments;
        }

        $reflection = $this->calleeReflector->reflect($callNode);
        $byReferenceParameterPositions = array_flip($reflection->getByReferenceParameterPositions());
        $byReferenceArguments = array_intersect_key($byReferenceArguments, $byReferenceParameterPositions);

        return $byReferenceArguments;
    }
public function getByReferenceCallArguments ( $ callNode ) { $ byReferenceArguments = $ callNode -> args ; if ( ! $ this -> calleeReflector -> supports ( $ callNode ) ) { return $ byReferenceArguments ; } $ reflection = $ this -> calleeReflector -> reflect ( $ callNode ) ; $ byReferenceParameterPositions = array_flip ( $ reflection -> getByReferenceParameterPositions ( ) ) ; $ byReferenceArguments = array_intersect_key ( $ byReferenceArguments , $ byReferenceParameterPositions ) ; return $ byReferenceArguments ; }
Returns arguments passed by reference, if reflection for the called function
is available. Otherwise returns all the arguments.

@param Node\Expr\FuncCall|Node\Expr\StaticCall|Node\Expr\MethodCall $callNode

@return array|Node\Arg[]
Returns arguments passed by reference if reflection for the called function is available . Otherwise returns all the arguments .