mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Add back support for TObject property fetch
This commit is contained in:
parent
35e6cf8108
commit
aeb9882281
@ -171,7 +171,7 @@ class FetchChecker
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!$lhs_type_part instanceof TNamedObject) {
|
||||
if (!$lhs_type_part instanceof TNamedObject && !$lhs_type_part instanceof TObject) {
|
||||
if (IssueBuffer::accepts(
|
||||
new InvalidPropertyFetch(
|
||||
'Cannot fetch property on non-object ' . $stmt_var_id . ' of type ' . $lhs_type_part,
|
||||
|
Loading…
Reference in New Issue
Block a user