Re: [PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Saki Takamachi
Hi Claude, > For information, the question of properties on interfaces is covered by the > currently discussed RFC “Property hooks”: > https://wiki.php.net/rfc/property-hooks I only half-understand that RFC. Thanks for pointing me out. Regards. Saki

[PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Saki Takamachi
Hi Larry, > This functionality is included in the Property Hooks RFC, which will be going > to a vote just as soon as Ilija finishes polishing up the test suite for it. > (I think he wants to get it into a "commit as soon as the vote passes" state > before we call the vote, even though

Re: [PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Saki Takamachi
Hi Larry, > This functionality is included in the Property Hooks RFC, which will be going > to a vote just as soon as Ilija finishes polishing up the test suite for it. > (I think he wants to get it into a "commit as soon as the vote passes" state > before we call the vote, even though that's

Re: [PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Claude Pache
> Le 28 mars 2024 à 16:03, Saki Takamachi a écrit : > > Therefore, I propose to allow public properties to be defined on the > interface (It does not matter whether it is read-only or not). > Hi, For information, the question of properties on interfaces is covered by the currently

Re: [PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Larry Garfield
On Thu, Mar 28, 2024, at 3:03 PM, Saki Takamachi wrote: > Hi internals, > > With read-only properties, we no longer need to define getter methods > when we can take advantage of them. > > However, there is still one problem here from a convenience standpoint. > That is if we use an interface, we

[PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Saki Takamachi
Hi internals, With read-only properties, we no longer need to define getter methods when we can take advantage of them. However, there is still one problem here from a convenience standpoint. That is if we use an interface, we still need to define a getter method. This was mentioned by