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!

3 comments
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

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

Please sign in to leave a comment.