Skip to content

Commit

Permalink
Merge pull request #9867 from janopae/patch-1
Browse files Browse the repository at this point in the history
Document classAndDescendants configuration tag
  • Loading branch information
orklah committed Jun 4, 2023
2 parents 9d1c2c4 + bdca314 commit e15e03d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/running_psalm/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<ignoreExceptions>
<class name="fully\qualified\path\Exc" onlyGlobalScope="true" />
<classAndDescendants name="fully\qualified\path\OtherExc" />
</ignoreExceptions>
```

Expand Down

0 comments on commit e15e03d

Please sign in to comment.