Re: [PHP-DEV] [VOTE] Clone with v2

2025-06-08 Thread Rob Landers
On Wed, Jun 4, 2025, at 17:13, Volker Dusch wrote: > Hi everyone, > > We just opened the vote for the "Clone with v2" RFC: > > RFC: https://wiki.php.net/rfc/clone_with_v2 > Discussion: https://externals.io/message/127353 > PR: https://github.com/php/php-src/pull/18747 > > As with every RFC, a 2/

[PHP-DEV] static properties in readonly classes

2025-06-08 Thread Rob Landers
Hello internals, As far as I can tell from previous conversations and PRs; static properties aren’t supported in readonly classes for technical reasons and because nobody was sure what to do with them ... ... but that seems weird because you can also do something like this: https://3v4l.org/u

Re: [PHP-DEV] Requesting RFC edit access

2025-06-08 Thread Derick Rethans
On 8 June 2025 14:07:31 BST, Nick wrote: >Hey all, > >Can someone please grant me RFC edit access? >I’d like to fix two typos in our "Readonly hooks” RFC. > >User: nicksdot I have done so. cheers Derick

Re: [PHP-DEV] [RFC] Readonly property hooks

2025-06-08 Thread Nick
Hey Volker, > On 8. Jun 2025, at 19:17, Volker Dusch wrote: > > a) From the "ProductFromDB" i get: > > > Fatal error: Uncaught TypeError: LazyProduct::$category::get(): Return > > value must be of type Category, none returned in ... > > I assume you're missing a return statement here? Or is t

[PHP-DEV] Requesting RFC edit access

2025-06-08 Thread Nick
Hey all, Can someone please grant me RFC edit access? I’d like to fix two typos in our "Readonly hooks” RFC. User: nicksdot Thanks, Nick

Re: [PHP-DEV] [RFC] Readonly property hooks

2025-06-08 Thread Volker Dusch
Hey Larry, Couple points from a first read and from trying to run the examples. a) From the "ProductFromDB" i get: > Fatal error: Uncaught TypeError: LazyProduct::$category::get(): Return value must be of type Category, none returned in ... I assume you're missing a return statement here? Or is