From bdca3144a0324c3b10c4931f708ca94fc38a4a58 Mon Sep 17 00:00:00 2001 From: Jano Paetzold Date: Fri, 2 Jun 2023 17:00:13 +0200 Subject: [PATCH] Document classAndDescendants configuration tag As stated in #3286, this is still undocumented. --- docs/running_psalm/configuration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/running_psalm/configuration.md b/docs/running_psalm/configuration.md index 43f42c3bf..5df27cff5 100644 --- a/docs/running_psalm/configuration.md +++ b/docs/running_psalm/configuration.md @@ -574,10 +574,11 @@ or interfaces defined in a stub file, this stub should be configured with attrib ``` #### <ignoreExceptions> -Optional. A list of exceptions to not report for `checkForThrowsDocblock` or `checkForThrowsInGlobalScope`. If an exception has `onlyGlobalScope` set to `true`, only `checkForThrowsInGlobalScope` is ignored for that exception, e.g. +Optional. A list of exceptions to not report for `checkForThrowsDocblock` or `checkForThrowsInGlobalScope`. The `class` tag will make Psalm ignore only instances of the specified class, while `classAndDescendants` will make Psalm also ignore subclasses. If an exception has `onlyGlobalScope` set to `true`, only `checkForThrowsInGlobalScope` is ignored for that exception, e.g. ```xml + ```