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:
parent
a670aa7ddc
commit
507f5f4afa
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user