1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +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 // do nothing
} }
} else { } elseif (!$context->inside_isset) {
if (IssueBuffer::accepts( if (IssueBuffer::accepts(
new PossiblyInvalidArrayAccess( new PossiblyInvalidArrayAccess(
'Cannot access array value on non-array variable ' . 'Cannot access array value on non-array variable ' .