Skip to content

Commit

Permalink
provide documentation for ensureArrayIntOffsetsExist configuration op…
Browse files Browse the repository at this point in the history
…tion (#4328)
  • Loading branch information
marcosh authored and muglug committed Oct 15, 2020
1 parent e07c259 commit c1b6cf7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/running_psalm/configuration.md
Expand Up @@ -273,6 +273,14 @@ Setting to `false` prevents the stub from loading.
```
When `true`, Psalm will complain when referencing an explicit string offset on an array e.g. `$arr['foo']` without a user first asserting that it exists (either via an `isset` check or via an object-like array). Defaults to `false`.

#### ensureArrayIntOffsetsExist
```xml
<psalm
ensureArrayIntOffsetsExist="[bool]"
>
```
When `true`, Psalm will complain when referencing an explicit integer offset on an array e.g. `$arr[7]` without a user first asserting that it exists (either via an `isset` check or via an object-like array). Defaults to `false`.

#### phpVersion
```xml
<psalm
Expand Down

0 comments on commit c1b6cf7

Please sign in to comment.