Le 22/01/2026 à 10:12, Tim Düsterhus a écrit :
Hi
we just opened the vote on the “let construct (Block Scoping)” RFC
(which was originally proposed as “use construct”, but the keyword
changed as a result of the discussion).
Please find the following resources:
- RFC: https://wiki.php.net/rfc/optin_block_scoping
- Official Discussion Thread:
https://news-web.php.net/php.internals/129059
- Related Discussion Thread:
https://news-web.php.net/php.internals/129251
Hello,
I personally can't vote, but I'd like very much this feature to happen.
I have no strong opinion about the syntax (let is fine for me, as would
be with, using, or anything else...).
Just wanted to add my 2cents here, thank you all contribs to the time
you give to PHP.
--
Pierre