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

Fix test condition

This commit is contained in:
Matthew Brown 2020-02-22 10:53:30 -05:00
parent 1c218c020e
commit 1a3129b0e0

View File

@ -2012,6 +2012,10 @@ class AssertionFinder
Codebase $codebase,
bool $negate
) : void {
if ($first_var_type->hasMixed()) {
return;
}
$always_contains = TypeAnalyzer::isContainedBy(
$codebase,
$expected_type,