src/TokenStream.php
public function lookaheadTypeIsAnyOf(array $types): bool
    {
        return isset($this->tokens[$this->position]) && $this->tokens[$this->position]->typeEqualsAnyOf($types);
    }
public function lookaheadTypeIsAnyOf(array $types): bool
    {
        return isset($this->tokens[$this->position]) && $this->tokens[$this->position]->typeEqualsAnyOf($types);
    }
public function lookaheadTypeIsAnyOf ( array $ types ) : bool { return isset ( $ this -> tokens [ $ this -> position ] ) && $ this -> tokens [ $ this -> position ] -> typeEqualsAnyOf ( $ types ) ; }
Returns true if the lookahead type equals any of the given types.

@param array $types

@return bool
Returns true if the lookahead type equals any of the given types .