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

null operations should return mixed results (#4655)

This commit is contained in:
orklah 2020-11-22 15:06:03 +01:00 committed by Daniil Gentili
parent cd37174de4
commit ecb201a312
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -75,6 +75,7 @@ class NonDivArithmeticOpAnalyzer
)) {
// fall through
}
$result_type = Type::getMixed();
return;
}
@ -101,6 +102,7 @@ class NonDivArithmeticOpAnalyzer
)) {
// fall through
}
$result_type = Type::getMixed();
return;
}