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 past versions of PHP without issue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…