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() {}
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: c57683 - released at 2026-04-14 12:11