diff --git a/src/Psalm/Type.php b/src/Psalm/Type.php index f867231c8..8508caa2c 100644 --- a/src/Psalm/Type.php +++ b/src/Psalm/Type.php @@ -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;