<!-- First, thank you for reporting a bug. That takes time and we appreciate that! --> | Subject | Details | | :------------- | :-------------------------------------------------------------------- | | Rector version | Rector 0.6.x-dev@b2c0c3e | | PHP version | 7.4.2 | | Full Command | | | Demo link | https://getrector.org/demo/c85519dc-4feb-469e-b30d-fffc4d7f279c | rector.yaml | | ## Current Behaviour `ArraySpreadInsteadOfArrayMergeRector` is buggy because ```php array_merge(...$values)) !== [...$values] ``` ```php <?php $values = [ [new stdClass], [new stdClass] ]; var_dump(array_merge(...$values) === [...$values]); ``` ## Minimal PHP Code Causing Issue https://getrector.org/demo/c85519dc-4feb-469e-b30d-fffc4d7f279c ## Expected Behaviour `ArraySpreadInsteadOfArrayMergeRector` is not applied
Current Behaviour
ArraySpreadInsteadOfArrayMergeRectoris buggy becauseMinimal PHP Code Causing Issue
https://getrector.org/demo/c85519dc-4feb-469e-b30d-fffc4d7f279c
Expected Behaviour
ArraySpreadInsteadOfArrayMergeRectoris not applied