Skip to content
Permalink
Browse files

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

This change exposes the documentation for the <globals> project setting.
  • Loading branch information...
lhchavez authored and muglug committed Aug 26, 2019
1 parent 51bf0b4 commit 3e5f6b16b79c394cfcf368245651b3f2e1cc1f1d
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/running_psalm/configuration.md
@@ -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>
```

0 comments on commit 3e5f6b1

Please sign in to comment.
You can’t perform that action at this time.