Skip to content

Commit 11f2d7f

Browse files
committed
[DeadCode] Add Declare_ to NodeGroup::STMTS_AWARE to allow remove Declare_ stmts
1 parent 063bcec commit 11f2d7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • rules-tests/DeadCode/Rector/Stmt/RemoveUnreachableStatementRector/Fixture

rules-tests/DeadCode/Rector/Stmt/RemoveUnreachableStatementRector/Fixture/on_ticks.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Rector\Tests\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector\Fix
55
declare(ticks=1) {
66
echo 'test';
77

8-
die;
8+
throw new \Exception();
99

1010
echo 'unreachable';
1111
}
@@ -19,7 +19,7 @@ namespace Rector\Tests\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector\Fix
1919
declare(ticks=1) {
2020
echo 'test';
2121

22-
die;
22+
throw new \Exception();
2323
}
2424

2525
?>

0 commit comments

Comments
 (0)