mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
null operations should return mixed results (#4655)
This commit is contained in:
parent
0d0ed8be15
commit
a3217265ce
@ -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