From c45e9bfc5fb9164ec72da11e370c6981c0be8986 Mon Sep 17 00:00:00 2001 From: orklah Date: Sun, 26 Sep 2021 21:10:02 +0200 Subject: [PATCH] useless switch --- src/Psalm/Type/Reconciler.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Psalm/Type/Reconciler.php b/src/Psalm/Type/Reconciler.php index cfec9f321..0f9334af6 100644 --- a/src/Psalm/Type/Reconciler.php +++ b/src/Psalm/Type/Reconciler.php @@ -102,10 +102,8 @@ class Reconciler foreach ($new_type_parts as $new_type_part_parts) { foreach ($new_type_part_parts as $new_type_part_part) { - switch ($new_type_part_part[0]) { - case '!': - $has_negation = true; - break; + if ($new_type_part_part[0] === '!') { + $has_negation = true; } $has_isset = $has_isset