1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Add documentation for the <globals> project setting (#2068)

This change exposes the documentation for the <globals> project setting.
This commit is contained in:
lhchavez 2019-08-25 20:47:39 -07:00 committed by Matthew Brown
parent 51bf0b4001
commit 3e5f6b16b7

View File

@ -289,3 +289,11 @@ Optional. A list of exceptions to not report for `checkForThrowsDocblock` or `c
<class name="fully\qualified\path\Exc" onlyGlobalScope="true" />
</ignoreExceptions>
```
#### `<globals>`
Optional. If your codebase uses global variables that are accessed with the `global` keyword, you can declare their type. e.g.
```xml
<globals>
<var name="globalVariableName" type="type" />
</globals>
```