# Bug Report <!-- First, thank you for reporting a bug. That takes time and we appreciate that! --> | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code Causing Issue See https://getrector.com/demo/75c05890-19ae-43c6-99af-23571522354d ```php <?php final class DemoFile { public function run() { return 5; // we never get here return 10; } } ``` ### Responsible rules * `RemoveUnreachableStatementRector` ## Expected Behavior <!-- How should Rector change the code? Or should Rector skip it? -->
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/75c05890-19ae-43c6-99af-23571522354d
Responsible rules
RemoveUnreachableStatementRectorExpected Behavior