re: PHP Typed Properties: Think Twice. VIEW POST

TOP OF THREAD FULL DISCUSSION
re: You can still get the benefits of type-checking internally though, right? This is where it will shine. I don´t write setters, so changes internal...
 

It´s so strange that the RFC also has example with public properties. What an awful thing to recommend.

I don't think it's meant as a recommendation or "good practice" - I'm pretty sure the folks behind this RFC know what they're doing. This was probably just the first, most simple example that came to mind, in order to illustrate how the feature would work.

But yeah, clearly the community seem to have jumped to that conclusion - that was my motivation for writing this article 🙂

code of conduct - report abuse