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:
parent
bf5e178d16
commit
b8a1f5d5c9
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user