1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 01:37:23 +01:00

useless switch

This commit is contained in:
orklah 2021-09-26 21:10:02 +02:00
parent fce60a018a
commit c45e9bfc5f

View File

@ -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