dgoosens, (edited )
@dgoosens@phpc.social avatar

just remembered that the awesome spread operator ... plays VERY nice with the named attributes of a method

shudder,
@shudder@phpc.social avatar

@dgoosens No need to obfuscate it with call_user_func().
Foo::from(...$args); would also work.

dgoosens,
@dgoosens@phpc.social avatar

@shudder

yes... good point
sorry... I just copy/pasted the piece of code I wrote for a colleague of mine
will adapt

dgoosens,
@dgoosens@phpc.social avatar

@shudder

done

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • kavyap
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • khanakhh
  • rosin
  • Durango
  • megavids
  • vwfavf
  • GTA5RPClips
  • cubers
  • tacticalgear
  • tester
  • cisconetworking
  • ngwrru68w68
  • Leos
  • normalnudes
  • provamag3
  • modclub
  • anitta
  • JUstTest
  • All magazines