src/TokenStream.php
public function nextIfAnyOf(array $types): bool
    {
        if (!$this->current->typeEqualsAnyOf($types)) {
            return false;
        }

        $this->next();
        return true;
    }
public function nextIfAnyOf(array $types): bool
    {
        if (!$this->current->typeEqualsAnyOf($types)) {
            return false;
        }

        $this->next();
        return true;
    }
public function nextIfAnyOf ( array $ types ) : bool { if ( ! $ this -> current -> typeEqualsAnyOf ( $ types ) ) { return false ; } $ this -> next ( ) ; return true ; }
If the current token type matches any of the given types, move to the next token.
Returns true if next was fired.

@param int[] $types

@return bool
If the current token type matches any of the given types move to the next token . Returns true if next was fired .