1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Be more lenient when inside isset

This commit is contained in:
Brown 2020-04-04 11:15:13 -04:00
parent 94fefde376
commit fca6585f6e

View File

@ -1245,7 +1245,7 @@ class ArrayFetchAnalyzer
) {
// do nothing
}
} else {
} elseif (!$context->inside_isset) {
if (IssueBuffer::accepts(
new PossiblyInvalidArrayAccess(
'Cannot access array value on non-array variable ' .