Skip to content

Commit b2fba0b

Browse files
committed
add unreachable statement test on UnnecessaryTernaryExpressionRector
1 parent b01e81c commit b2fba0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rules-tests/CodeQuality/Rector/Ternary/UnnecessaryTernaryExpressionRector/Fixture/fixture_unreachable.php.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class B
2424
}
2525
}
2626

27+
$order || $oldOrder ? true : false;
28+
2729
?>
2830
-----
2931
<?php
@@ -52,4 +54,6 @@ class B
5254
}
5355
}
5456

57+
$order || $oldOrder;
58+
5559
?>

0 commit comments

Comments
 (0)