Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus authored Dec 20, 2024
1 parent f2ccc53 commit c61a8ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tokenizer/Transformer/BraceTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c61a8ef

Please sign in to comment.