simonhamp,
@simonhamp@phpc.social avatar

Hey folks 👋🏼 got a little twisty thing to noodle on:

If a class and an enum can equally implement an interface, does that mean it's safe to use them interchangeably when your method type-hints the interface that they both implement?

🤔

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