Run Rector on your code to see what it can do for you:

                 $bindings[] = $index + 1;
             }
         	print($statement);
-            foreach ($ids as $cID) {
-                $bindings[] = $cID;
-            }
+            $bindings = $ids;
     }
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 2efb35 - released at 2025-12-26 22:19