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

@param array $types

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