mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Prevent erroneous __toString conversion in method check
This commit is contained in:
parent
ea06f62d72
commit
4c3dacbbed
@ -244,7 +244,7 @@ class FetchChecker
|
||||
continue;
|
||||
}
|
||||
|
||||
if (MethodChecker::methodExists($lhs_type_part . '::__get')) {
|
||||
if (MethodChecker::methodExists($lhs_type_part->value . '::__get')) {
|
||||
$stmt->inferredType = Type::getMixed();
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user