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


Result

Used Rector version: No version set (parsed as 1.0.0)@

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