# 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/001ae62c-7857-4ce2-b4c1-8be77fd37568 ```php <?php final class DemoFile { public function run() { $a = ['a', 'b']; echo in_array('a', [...$a]); } } ``` ### Responsible rules * `SingleInArrayToCompareRector` ## Expected Behavior Either no change or ```php <?php final class DemoFile { public function run() { $a = ['a', 'b']; echo in_array('a', $a); } } ```
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/001ae62c-7857-4ce2-b4c1-8be77fd37568
Responsible rules
SingleInArrayToCompareRectorExpected Behavior
Either no change or