Bug Report
| Subject |
Details |
| Rector version |
2.0.7 |
Minimal PHP Code Causing Issue
<?php
trait A
{
public function a()
{
$a = 'a';
return $a{1};
}
}
Output:
Could not process "..." file, due to:
"System error: "Scope not available on "PhpParser\Node\Stmt\ClassMethod" node. Fix scope refresh on changed nodes first"
Expected Behaviour
Change {1} to [1]
It works fine for classes