Incorrect rewriting of ENCAPSED strings
Open
- Dominant language
- PHP
- Stars
- 308
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
This code is rewritten incorrectly:
``` 'json_encode'];
echo "json is {$arr['json_encode']($arr)}\n";
```
Result:
``` 'json_encode'];
echo "json is {\Badoo\SoftMocks::callFunction(__NAMESPACE__, $arr['json_encode'], array(&$arr))}\n";
````
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the provided PHP example and trace the rewriting path for ENCAPSED strings. Compare the generated output with the original callable array access; done means the expression is rewritten into valid PHP without changing its intended lookup or invocation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100