Crell, Looking for #PHP feedback.
I have a lib build for PHP 7 that has 3 methods:
addFoo($id, $priority)
addFooBefore($id, $before)
addFooAfter($id, $after)($before/$after refer to some other $id.)
For PHP 8, I am strongly considering just assuming named args and changing it to:
addFoo($id, $priority, $before, $after);
Specify only one of priority/before/after, by name. Multiple is an error.
Is this a good idea/bad idea, and why?
Add comment