# 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.org/demo/eb0f5c8f-86e3-40ed-bb38-86675496f0c8 ```php <?php final class DemoFile { public function run() { if ( rand( 0, 5 ) > 2 ) { return; } else { ?> this is <?php echo "hello"; ?> world <?php } } } ``` ### Responsible rules * `RemoveAlwaysElseRector` ## Expected Behavior Not create a fatal error
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.org/demo/eb0f5c8f-86e3-40ed-bb38-86675496f0c8
Responsible rules
RemoveAlwaysElseRectorExpected Behavior
Not create a fatal error