Try these: PHP 7.4 Typed Properties create_function() Early Return Null Coalescing


Result

Used Rector version: 0.8.x-dev@3aa2fc8

<?php
 
-create_function('$a,$b', "return \"min(b^2+a, a^2,b) = \".min(\$a*\$a+\$b,\$b*\$b+\$a);");
+function ($a, $b) {
+    return "min(b^2+a, a^2,b) = " . min($a * $a + $b, $b * $b + $a);
+};