rector
rector copied to clipboard
Incorrect behavior of WrapVariableVariableNameInCurlyBracesRector
Bug Report
Subject | Details |
---|---|
Rector version | last dev-main |
Installed as | composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/7ebfdb2e-88ec-4c6e-9dbe-2faa74a30977
<?php
$$foo['bar']['baz'];
Responsible rules
-
WrapVariableVariableNameInCurlyBracesRector
Expected Behavior
According to https://www.php.net/manual/en/migration70.incompatible.php:
Expression | PHP 5 interpretation |
---|---|
$$foo['bar']['baz'] |
${$foo['bar']['baz']} |