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

Add context-sensitive conversion

This commit is contained in:
Brown 2020-04-22 16:08:04 -04:00
parent a670aa7ddc
commit 507f5f4afa

View File

@ -1648,7 +1648,10 @@ class ExpressionAnalyzer
}
}
$combined = TypeCombination::combineTypes($all_conditional_return_types);
$combined = TypeCombination::combineTypes(
$all_conditional_return_types,
$codebase
);
return array_values($combined->getAtomicTypes());
}