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