O parâmetro necessário segue o parâmetro opcional (erro de 500 servidor interno) PHP
The required parameter without a default value should come first (according to php 8.0)
Wrong Way:
function test_function(int $yyy = 2, int $xxx)
{
return $xxx * $yyy;
}
Right Way:
function test_function(int $xxx, int $yyy = 2)
{
return $xxx * $yyy;
}
Unit Orion