From ece18cd9b53253fd39e189d608a6143c87406d67 Mon Sep 17 00:00:00 2001 From: Marco Perone Date: Thu, 15 Oct 2020 01:59:28 +0200 Subject: [PATCH] provide documentation for ensureArrayIntOffsetsExist configuration option (#4328) --- docs/running_psalm/configuration.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/running_psalm/configuration.md b/docs/running_psalm/configuration.md index 60e7e2664..58bae2583 100644 --- a/docs/running_psalm/configuration.md +++ b/docs/running_psalm/configuration.md @@ -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 + +``` +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