Bug Report
| Subject |
Details |
| Rector version |
last dev-main |
| Installed as |
composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/88709536-50ef-4cc6-842a-75409b778fbe
<?php
final class DemoFile
{
public function run(bool $param)
{
if ($this->isTrue($param)) {
return 5;
}
return '10';
}
private function isTrue($value)
{
$a = $b = 42;
// Test with comment just before double assignment
$c = $d = 13;
return $value === true;
}
}
Responsible rules
Expected Behavior
The // Test with comment just before double assignment comment line disappear, it should not.
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/88709536-50ef-4cc6-842a-75409b778fbe
Responsible rules
SplitDoubleAssignRectorExpected Behavior
The
// Test with comment just before double assignmentcomment line disappear, it should not.