code: function containOnly(string $type): self {
      return $this->expect($this->target, containsOnly($type));
    }
docs: Reports an error if the target does not contain only variables of a given type.
  @param string $type The type to check.
  @return self This instance.