Php versions – Required parameter $xxx follows optional parameter $yyy
Deprecated: Required parameter $xxx follows optional parameter $yyy in... Since upgrading to PHP 8.0 this error is thrown when running code like this: function test_function(int $var1 = 2, int $var2) { return $var1 / $var2; } This has worked in…