Run Rector on your code to see what it can do for you:
<?php final class DemoFile
protected function some(array $data, string $fieldSet, string $field, bool $skipIfConfigValueUsed = false) { # logic change after rector - if (!($skipIfConfigValueUsed && $this->other())) { - if (isset($data[$field])) { - } + if (!$skipIfConfigValueUsed && $this->other() && isset($data[$field])) { } } protected function other() {} }
Applied Rules:
Not a change you expect?
rector.php