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

 {
     public function size()
     {
-        $this->run([SkipWhenParamNotAcceptCallable::class, 'size']);
+        $this->run(SkipWhenParamNotAcceptCallable::size(...));
     }
 
     public function run(array $arrayCallable)
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 572e31 - released at 2026-03-08 00:49