1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Ors can still be created directly from conditions

This commit is contained in:
Brown 2020-02-18 12:12:34 -05:00
parent 6e8088776d
commit 9230b425e7

View File

@ -705,6 +705,10 @@ class Algebra
}
}
$creating_object_id = $right_clause->creating_object_id === $left_clause->creating_object_id
? $right_clause->creating_object_id
: null;
$clauses[] = new Clause(
$possibilities,
false,
@ -712,7 +716,9 @@ class Algebra
$right_clause->generated
|| $left_clause->generated
|| count($left_clauses) > 1
|| count($right_clauses) > 1
|| count($right_clauses) > 1,
[],
$creating_object_id
);
}
}