Local variable to object property refactoring?
I've had several cases this week where I started out with a local variable in a PHP class method (e.g., $myItem) and wanted to change it to be a class property (e.g., $this->myItem). Does PhpStorm support this sort of refactoring? I can do it by hand, to be sure, but I'm getting spoiled by PhpStorm's power. Thanks!
请先登录再写评论。
Hey, Edward.
I'm finding answer for the same question now.
Have you found the answer?
Hi James, No. I do the edit by hand.
https://youtrack.jetbrains.com/issue/WI-879 -- watch this ticket (star/vote/comment) to get notified on progress (lets hope there will be some progress soon...).