v1.2.0
What's Changed
- Named function args by @RobertWesner in #1
Full Changelog: v1.1.0...v1.2.0
New
args()
The Novara::Call::args() function allows you to ensure novarity yet still have named arguments.
Novara::Call::args(
[
'name',
'age',
],
func_get_args(),
)->age === ...This can be combined with the spreading.
// Share the args through spreading
return Novara::Call::spread(
Novara::Call::args(
[
'name',
'age',
],
func_get_args(),
),
function () {
... func_get_arg(0)->name ...
},
function () {
... func_get_arg(0)->age ...
},
);