Skip to content

Commit 7bb5a2e

Browse files
committed
[ci skip] yield /*comment*/ from is no longer a parse error
Closes GH-15276.
1 parent cbe73a1 commit 7bb5a2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ PHP 8.3 UPGRADE NOTES
4545
be removed during cycle collection if the key is not reachable except by
4646
iterating over the WeakMap (reachability via iteration is considered weak).
4747
Previously, such entries would never be automatically removed.
48+
. In addition to whitespace characters, now comments are allowed between
49+
`yield` and `from`. The whole "construct" (e.g. `yield /* comment */ from`)
50+
is reported as a single `T_YIELD_FROM` token by the tokenizer.
4851

4952
- DOM:
5053
. DOMChildNode::after(), DOMChildNode::before(), DOMChildNode::replaceWith()

0 commit comments

Comments
 (0)