1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Don't assert mixed type

This commit is contained in:
orklah 2021-10-26 19:12:13 +02:00
parent e33492398b
commit e8e2624c5f

View File

@ -3378,7 +3378,7 @@ class AssertionFinder
}
if ($other_var_name && $other_type) {
if ($other_var_name && $other_type && !$other_type->isMixed()) {
if ($identical) {
try {
$assertion = $other_type->getAssertionString(true);