1
0
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:
Matthew Brown 2017-01-27 18:06:11 -07:00
parent ea06f62d72
commit 4c3dacbbed

View File

@ -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;
}