src/TokenStream.php
public function next(): bool
    {
        $this->current = isset($this->tokens[$this->position]) ? $this->tokens[$this->position++] : self::$eoi;
        return !$this->current->typeEquals(Token::T_EOI);
    }
public function next(): bool
    {
        $this->current = isset($this->tokens[$this->position]) ? $this->tokens[$this->position++] : self::$eoi;
        return !$this->current->typeEquals(Token::T_EOI);
    }
public function next ( ) : bool { $ this -> current = isset ( $ this -> tokens [ $ this -> position ] ) ? $ this -> tokens [ $ this -> position ++ ] : self :: $ eoi ; return ! $ this -> current -> typeEquals ( Token :: T_EOI ) ; }
Increments the position and sets the current token to the previous token.
Returns true if the new "current" is not EOI.

@return bool
Increments the position and sets the current token to the previous token . Returns true if the new current is not EOI .