The rule should only append/combine if-condition, not changing logic.
<?php
final class DemoFile
{
protected function some(array $data, string $fieldSet, string $field, bool $skipIfConfigValueUsed = false)
{
if (!($skipIfConfigValueUsed && $this->other()) && isset($data[$field])) {
}
}
protected function other() {}
}
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/7a2d362e-2864-4b8b-9bdc-e656c2fce98f
Responsible rules
CombineIfRectorExpected Behavior
The rule should only append/combine if-condition, not changing logic.