1
0
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:
Matthew Brown 2017-10-29 17:44:13 -04:00
parent 35e6cf8108
commit aeb9882281

View File

@ -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,