Skip to content

Commit

Permalink
Add documentation for enableExtensions and disableExtensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrolGenhald committed Dec 9, 2021
1 parent a057c61 commit 9c11e63
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions docs/running_psalm/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ When `true`, Psalm will report all `@psalm-suppress` annotations that aren't use
loadXdebugStub="[bool]"
>
```
Deprecated, use <enableExtensions> instead.
If not present, Psalm will only load the Xdebug stub if Psalm has unloaded the extension.
When `true`, Psalm will load the Xdebug extension stub (as the extension is unloaded when Psalm runs).
Setting to `false` prevents the stub from loading.
Expand Down Expand Up @@ -328,7 +329,7 @@ When `false`, Psalm will not consider issue at lower level than `errorLevel` as
#### allowNamedArgumentCalls

```xml
<psalm
<psalm
allowNamedArgumentCalls="[bool]"
>
```
Expand Down Expand Up @@ -417,6 +418,23 @@ Optional. Same format as `<projectFiles>`. Directories Psalm should load but not
#### &lt;fileExtensions&gt;
Optional. A list of extensions to search over. See [Checking non-PHP files](checking_non_php_files.md) to understand how to extend this.

#### &lt;enableExtensions&gt;
Optional. A list of extensions to enable. By default, only extensions required by your composer.json will be enabled.
```xml
<enableExtensions>
<extension name="decimal"/>
<extension name="pdo"/>
</enableExtensions>
```

#### &lt;disableExtensions&gt;
Optional. A list of extensions to disable. By default, only extensions required by your composer.json will be enabled.
```xml
<disableExtensions>
<extension name="gmp"/>
</disableExtensions>
```

#### &lt;plugins&gt;
Optional. A list of `<plugin filename="path_to_plugin.php" />` entries. See the [Plugins](plugins/using_plugins.md) section for more information.

Expand Down Expand Up @@ -468,7 +486,7 @@ The following configuration declares custom types for super-globals (`$GLOBALS`
```xml
<globals>
<var name="$GLOBALS" type="array{DB: MyVendor\DatabaseConnection, VIEW: MyVendor\TemplateView}" />
<var name="$_GET" type="array{data: array<string, string>}" />
<var name="$_GET" type="array{data: array<string, string>}" />
</globals>
```

Expand Down

0 comments on commit 9c11e63

Please sign in to comment.