      def add(self, key, docs, *_docs, on_match=None):
          """Add a match-rule to the phrase-matcher. A match-rule consists of: an ID
          key, an on_match callback, and one or more patterns.
  
          As of spaCy v2.2.2, PhraseMatcher.add supports the future API, which
          makes the patterns the second argument and a list (instead of a variable
          number of arguments). The on_match callback becomes an optional keyword
          argument.
  
          key (str): The match ID.
          docs (list): List of `Doc` objects representing match patterns.
          on_match (callable): Callback executed on match.
 
</s> remove         As of spaCy v2.2.2, Matcher.add supports the future API, which makes
        the patterns the second argument and a list (instead of a variable
        number of arguments). The on_match callback becomes an optional keyword
        argument.
 </s> add         Since spaCy v2.2.2, Matcher.add takes a list of patterns as the second
        argument, and the on_match callback is an optional keyword argument. </s> remove             msg.text(
                "As of spaCy v2.1.0, entity spans consisting of or starting/ending "
                "with whitespace characters are considered invalid."
            )

        if has_punct_ents_warning:
 </s> add  </s> remove         if not has_punct_ents_warning:
            msg.good("No entities consisting of or starting/ending with punctuation")
 </s> add  </s> remove                 if label.startswith(("B-", "U-", "L-")) and doc[i].text in [
                    ".",
                    "'",
                    "!",
                    "?",
                    ",",
                ]:
                    # punctuation entity: could be replaced by whitespace when training with noise,
                    # so add a warning to alert the user to this unexpected side effect.
                    data["punct_ents"] += 1
 </s> add  </s> remove                 "with punctuation can not be trained with a noise level > 0."
 </s> add                 "with whitespace characters are considered invalid."
        Since spaCy v2.2.2, PhraseMatcher.add takes a list of patterns as the
        second argument, with the on_match callback as an optional keyword
      def add(self, key, docs, *_docs, on_match=None):
          """Add a match-rule to the phrase-matcher. A match-rule consists of: an ID
          key, an on_match callback, and one or more patterns.
  
        Since spaCy v2.2.2, PhraseMatcher.add takes a list of patterns as the
        second argument, with the on_match callback as an optional keyword
        Since spaCy v2.2.2, PhraseMatcher.add takes a list of patterns as the
        second argument, with the on_match callback as an optional keyword
        Since spaCy v2.2.2, PhraseMatcher.add takes a list of patterns as the
        second argument, with the on_match callback as an optional keyword
          argument.
  
          key (str): The match ID.
          docs (list): List of `Doc` objects representing match patterns.
          on_match (callable): Callback executed on match.
keep keep keep keep replace replace replace keep keep keep keep keep
 Remove some old version refs in the docs (#9448)

* Remove some old version refs in the docs

* Remove warning

* Update spacy/matcher/matcher.pyx

* Remove all references to the punctuation warning

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> 
spacy/matcher/phrasematcher.pyx