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:
parent
cd37174de4
commit
ecb201a312
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user