Closed skurvish closed 2 years ago
PHP8 is strict about required parameters following optional ones. The PR simply reorders the parameters so the optional one is last.
Not sure if it's the best way to reorder params of a public function. It may be used by somebody.
The other option is to give the elGroupModel a default, perhaps null? I can reword this PR if that works for you.
PHP8 is strict about required parameters following optional ones. The PR simply reorders the parameters so the optional one is last.