<?php
final class DemoFile
{
public function run()
{
$vouchers[] = $voucher = new stdObject;
$vouchers->test = 'test';
return $vouchers;
}
}
<?php
final class DemoFile
{
public function run()
{
$voucher = new stdObject;
$vouchers[] = $voucher;
$voucher->test = 'test';
return $vouchers;
}
}
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/03059092-b305-4602-b5ae-468d91dea199
Responsible rules
SplitDoubleAssignRectorExpected Behavior