-
-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
rectorphp/rector-src
#3481Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-main |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/03059092-b305-4602-b5ae-468d91dea199
<?php
final class DemoFile
{
public function run()
{
$vouchers[] = $voucher = new stdObject;
$vouchers->test = 'test';
return $vouchers;
}
}Responsible rules
SplitDoubleAssignRector
Expected Behavior
<?php
final class DemoFile
{
public function run()
{
$voucher = new stdObject;
$vouchers[] = $voucher;
$voucher->test = 'test';
return $vouchers;
}
}Reactions are currently unavailable