[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
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

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()