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

Allow destructuring on arrayaccess implementers

This commit is contained in:
Brown 2020-05-03 00:08:03 -04:00
parent bf5e178d16
commit b8a1f5d5c9

View File

@ -571,6 +571,7 @@ class AssignmentAnalyzer
} elseif (!$assign_value_atomic_type instanceof Type\Atomic\TArray
&& !$assign_value_atomic_type instanceof Type\Atomic\ObjectLike
&& !$assign_value_atomic_type instanceof Type\Atomic\TList
&& !$assign_value_type->hasArrayAccessInterface($codebase)
) {
if ($assign_value_type->hasArray()) {
if (IssueBuffer::accepts(