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