1
0
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:
orklah 2020-11-22 15:06:03 +01:00 committed by GitHub
parent 0d0ed8be15
commit a3217265ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}