src/SplatToCallUserFuncArrayVisitor.php
protected function getSplatCallVars($args)
    {
        $isSplatCall = false;
        $variables = [];
        foreach ($args as $arg) {
            if ($arg->unpack) {
                $isSplatCall = true;
            }
            $variables[] = $arg->value;
        }
        if (! $isSplatCall) {
            return;
        }
        return $variables;
    }
protected function getSplatCallVars($args)
    {
        $isSplatCall = false;
        $variables = [];
        foreach ($args as $arg) {
            if ($arg->unpack) {
                $isSplatCall = true;
            }
            $variables[] = $arg->value;
        }
        if (! $isSplatCall) {
            return;
        }
        return $variables;
    }
protected function getSplatCallVars ( $ args ) { $ isSplatCall = false ; $ variables = [ ] ; foreach ( $ args as $ arg ) { if ( $ arg -> unpack ) { $ isSplatCall = true ; } $ variables [ ] = $ arg -> value ; } if ( ! $ isSplatCall ) { return ; } return $ variables ; }
Get variables of the splat function call.
@param  array[\PhpParser\Node\Arg] $args Node arguments
@return array[\PhpParser\Node\Expr\Variable] Node variables
Get variables of the splat function call .