@psalm-suppress InvalidScalarArgument
int $type:
boolean
\UnexpectedValueException
public function find($type) : bool { $search = clone $this; $search->skipUntil($type); if (!$search->lookahead) { throw new \UnexpectedValueException($type . ' not found'); } return true; }