diff --git a/src/Tokenizer/Transformer/BraceTransformer.php b/src/Tokenizer/Transformer/BraceTransformer.php index 269e208178d..01c018f0b5f 100644 --- a/src/Tokenizer/Transformer/BraceTransformer.php +++ b/src/Tokenizer/Transformer/BraceTransformer.php @@ -195,8 +195,9 @@ private function transformIntoPropertyHookBraces(Tokens $tokens, int $index): vo private function transformIntoCurlyIndexBraces(Tokens $tokens, int $index): void { - // as $arr{index} is illegal since 8.0 - if (\PHP_VERSION_ID >= 8_00_00) { + // as $arr{index} is illegal since 8.4 - ParseError + // (and produces FatalError on 8.0-8.3) + if (\PHP_VERSION_ID >= 8_04_00) { return; }