1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

[ci skip] yield /*comment*/ from is no longer a parse error

Closes GH-15276.
This commit is contained in:
Christoph M. Becker
2024-08-07 16:54:43 +02:00
parent cbe73a158f
commit 7bb5a2ee43

View File

@@ -45,6 +45,9 @@ PHP 8.3 UPGRADE NOTES
be removed during cycle collection if the key is not reachable except by
iterating over the WeakMap (reachability via iteration is considered weak).
Previously, such entries would never be automatically removed.
. In addition to whitespace characters, now comments are allowed between
`yield` and `from`. The whole "construct" (e.g. `yield /* comment */ from`)
is reported as a single `T_YIELD_FROM` token by the tokenizer.
- DOM:
. DOMChildNode::after(), DOMChildNode::before(), DOMChildNode::replaceWith()