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:
parent
51bf0b4001
commit
3e5f6b16b7
@ -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>
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user