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 committed Oct 14, 2020
1 parent e172e88 commit ece18cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/running_psalm/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,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 ece18cd

Please sign in to comment.