From 7bb5a2ee431d6038c9fc39ca37f64b284161e31c Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 7 Aug 2024 16:54:43 +0200 Subject: [PATCH] [ci skip] `yield /*comment*/ from` is no longer a parse error Closes GH-15276. --- UPGRADING | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UPGRADING b/UPGRADING index 519c1eec415..39ff20b0baf 100644 --- a/UPGRADING +++ b/UPGRADING @@ -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()