mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
cs-fix
This commit is contained in:
parent
33d8f3a62d
commit
7a7a7f6bc9
@ -701,7 +701,9 @@ abstract class Type
|
||||
&& ($int_intersection->min_bound !== null || $int_intersection->max_bound !== null)
|
||||
) {
|
||||
$intersection_performed = true;
|
||||
if ($int_intersection->min_bound !== null && $int_intersection->min_bound === $int_intersection->max_bound) {
|
||||
if ($int_intersection->min_bound !== null
|
||||
&& $int_intersection->min_bound === $int_intersection->max_bound
|
||||
) {
|
||||
return new TLiteralInt($int_intersection->min_bound);
|
||||
}
|
||||
return $int_intersection;
|
||||
|
Loading…
Reference in New Issue
Block a user