There have already been several such proposals made in past years, and
discussed at length here on the mailing list.
See C# Style Accessors past RFC:
https://wiki.php.net/rfc/propertygetsetsyntax-v1.2
and alternatives:
https://wiki.php.net/rfc/propertygetsetsyntax-alternative-typehinting-syntax
Hi everybody,
I've been using php for many years now and it really is a great language. My
friend and I were talking about additional things we would want in php - sort
of like a wishlist. I came up with 3 things that I think would make php even
more awesome and I wanted to share these concept