From c61a8ef73791bad1f6ea22e73f9fe876325496af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dariusz=20Rumi=C5=84ski?= Date: Fri, 20 Dec 2024 12:20:48 +0100 Subject: [PATCH] Apply suggestions from code review --- src/Tokenizer/Transformer/BraceTransformer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tokenizer/Transformer/BraceTransformer.php b/src/Tokenizer/Transformer/BraceTransformer.php index 889936117b3..1f2731592d9 100644 --- a/src/Tokenizer/Transformer/BraceTransformer.php +++ b/src/Tokenizer/Transformer/BraceTransformer.php @@ -198,7 +198,8 @@ private function transformIntoCurlyIndexBraces(Tokens $tokens, int $index): void // Support for fetching array index with braces syntax (`$arr{$index}`) // was deprecated in 7.4 and removed in 8.0. However, the PHP's behaviour // differs between 8.0-8.3 (fatal error in runtime) and 8.4 (parse error). - // @TODO Do not replace `CT::T_ARRAY_INDEX_CURLY_BRACE_*` for 8.0-8.3 + // + // @TODO Do not replace `CT::T_ARRAY_INDEX_CURLY_BRACE_*` for 8.0-8.3, as further optimization if (\PHP_VERSION_ID >= 8_04_00) { return; }