-
-
Notifications
You must be signed in to change notification settings - Fork 739
Closed
rectorphp/rector-src
#7179Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | dev-main |
Minimal PHP Code Causing Issue
https://getrector.com/demo/9209bf10-bb30-4028-96a2-0e8cd7ca8cf8
<?php
final class DemoFile
{
public function run()
{
if ($cond1) {
if (($cond2 = $this->getCond2Value()) === null) {
return 'foo';
}
}
}
}Expected Behaviour
<?php
final class DemoFile
{
public function run()
{
if ($cond1 && ($cond2 = $this->getCond2Value()) === null) {
return 'foo';
}
}
}Reactions are currently unavailable