Le 05/06/2021 à 12:06, Nikita Popov a écrit :
Yes, this is supported. What matters is the scope from which the
initialization occurs. If you rebind a closure to the scope of the class,
then you can perform any operations that would be legal inside that class,
including access to private properties and initialization of readonly
properties.
Regards,
Nikita
OK, I wasn't sure I thought I'd ask, this is nice, thank you !
I can't vote, but I love this RFC, thank you very much for this. I
sincerely hope this will not get into flames.
--
Pierre
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php