dgoosens, 5 months ago (edited 5 months ago) just remembered that the awesome #php spread operator ... plays VERY nice with the named attributes of a method
just remembered that the awesome #php spread operator ... plays VERY nice with the named attributes of a method
...
shudder, 5 months ago @dgoosens No need to obfuscate it with call_user_func(). Foo::from(...$args); would also work.
@dgoosens No need to obfuscate it with call_user_func(). Foo::from(...$args); would also work.
call_user_func()
Foo::from(...$args);
dgoosens, 5 months ago @shudder yes... good point sorry... I just copy/pasted the piece of code I wrote for a colleague of mine will adapt
@shudder
yes... good point sorry... I just copy/pasted the piece of code I wrote for a colleague of mine will adapt
dgoosens, 5 months ago @shudder done
done
Add comment