src/Parser.php
protected function argumentList(&$out)
    {
        $s = $this->count;
        $this->matchChar('(');

        $args = [];

        while ($this->keyword($var)) {
            if ($this->matchChar('=') && $this->expression($exp)) {
                $args[] = [Type::T_STRING, '', [$var . '=']];
                $arg = $exp;
            } else {
                break;
            }

            $args[] = $arg;

            if (! $this->matchChar(',')) {
                break;
            }

            $args[] = [Type::T_STRING, '', [', ']];
        }

        if (! $this->matchChar(')') || !$args) {
            $this->seek($s);

            return false;
        }

        $out = $args;

        return true;
    }
protected function argumentList(&$out)
    {
        $s = $this->count;
        $this->matchChar('(');

        $args = [];

        while ($this->keyword($var)) {
            if ($this->matchChar('=') && $this->expression($exp)) {
                $args[] = [Type::T_STRING, '', [$var . '=']];
                $arg = $exp;
            } else {
                break;
            }

            $args[] = $arg;

            if (! $this->matchChar(',')) {
                break;
            }

            $args[] = [Type::T_STRING, '', [', ']];
        }

        if (! $this->matchChar(')') || !$args) {
            $this->seek($s);

            return false;
        }

        $out = $args;

        return true;
    }
protected function argumentList ( & $ out ) { $ s = $ this -> count ; $ this -> matchChar ( '(' ) ; $ args = [ ] ; while ( $ this -> keyword ( $ var ) ) { if ( $ this -> matchChar ( '=' ) && $ this -> expression ( $ exp ) ) { $ args [ ] = [ Type :: T_STRING , '' , [ $ var . '=' ] ] ; $ arg = $ exp ; } else { break ; } $ args [ ] = $ arg ; if ( ! $ this -> matchChar ( ',' ) ) { break ; } $ args [ ] = [ Type :: T_STRING , '' , [ ', ' ] ] ; } if ( ! $ this -> matchChar ( ')' ) || ! $ args ) { $ this -> seek ( $ s ) ; return false ; } $ out = $ args ; return true ; }
Parse function call argument list

@param array $out

@return boolean
Parse function call argument list