shtefcs's avatar

Stefan Smiljkovic

shtefcs

Member since

30

Total Reputation

2

Total Arguments

2

Total Votes for Arguments

Arguments and votes

1

Yes, I agree with the idea of property hooks. It feels like a natural way to add more control over input and output without the need for heavy methods. It’s like bringing the convenience of Laravel’s Accessors/Mutators directly into PHP, but with more flexibility. While I understand some of the concerns about the implementation, I think it’s a step in the right direction for cleaner and more efficient code.

Share:
Read the RFC: Property Hooks shtefcs avatar
shtefcs
voted yes
1

It seems like there’s a strong consensus that removing the need for parentheses when instantiating a new class in PHP would make the code cleaner and more intuitive. Many of us find it to be unnecessary noise that adds friction to the coding flow. However, there are some concerns about maintaining existing functionality, like static methods. It would be great to hear more about how this change would impact the current syntax and whether the old behavior will still work.

Share:
Read the RFC: new MyClass()->method() without parentheses shtefcs avatar
shtefcs
voted yes
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!