dseguy, French
@dseguy@phpc.social avatar

is better than me : I thought I found a way to create properties in an interface, by declaring promoted properties in a constructor.

Someone coding the PHP engine was smarter than me : it feels so good! (BTW, who would that be?)

It's also going to save me some sanity, as I don't have to upgrade my Static Analysis Engine.

Girgias,
@Girgias@phpc.social avatar

@dseguy @nikic implemented this :)

dseguy,
@dseguy@phpc.social avatar

@Girgias @nikic Thank you Nikita!

velkuns,
@velkuns@phpc.social avatar

@dseguy One or two month ago, I thought the propertiez in interfaces will be a non-sense.

But after trying to use public properties in some classes implementing an interface, I'm not so sure about my previous thoughts 😅

I probably need to read again the RFC about it, to see it could be finally a great new feature for PHP :)

dseguy,
@dseguy@phpc.social avatar

@velkuns Always keep thinking, that's the way to go!

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