1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix property check

This commit is contained in:
Matthew Brown 2017-10-07 15:05:05 -04:00
parent cbc889a498
commit beea51d7bf

View File

@ -315,7 +315,7 @@ class ExpressionChecker
$container_type = Type::getString();
if ($stmt->expr->inferredType
if (isset($stmt->expr->inferredType)
&& !$stmt->expr->inferredType->isMixed()
&& !TypeChecker::isContainedBy(
$statements_checker->getFileChecker()->project_checker,