src/TokenStream.php
public function skipUntil($type)
    {
        $found = false;
        while ($this->valid()) {
            if ($this->current()->test($type)) {
                $found = true;
                break;
            }

            $this->next();
        }

        return $found;
    }
public function skipUntil($type)
    {
        $found = false;
        while ($this->valid()) {
            if ($this->current()->test($type)) {
                $found = true;
                break;
            }

            $this->next();
        }

        return $found;
    }
{@inheritdoc}