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:
parent
94fefde376
commit
fca6585f6e
@ -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 ' .
|
||||
|
Loading…
Reference in New Issue
Block a user