# 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/33491afb-b0b3-4fac-aeb3-6354db4ccabd ```php <?php final class DemoFile { public function run() { $array = ['foo' => 'bar']; return array_merge(['baz' => 'xxx'], $array); } } ``` ### Responsible rules * `ArraySpreadInsteadOfArrayMergeRector` ## Expected Behavior In this case shouldn't it become more: `return ['baz' => 'xxx', ...$array];`?