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!

0
Avatar
Permanently deleted user

Hey, Edward.
I'm finding answer for the same question now.
Have you found the answer?

0

Hi James, No. I do the edit by hand.

0

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...).

0

请先登录再写评论。