Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Rename local variable only works within classes. #68

Open
@LeighBicknell

Description

@LeighBicknell

I realise that this is designed primarily for use within classes however sometimes you can't/don't have 100% of your functions as methods in a class, when working in Wordpress for example.

Having the rename-local-variable functionality working for standard global space functions as well as methods would be a nice feature. Currently it returns an error:

$ php refactor.phar rename-local-variable test.php 136 oldname newname

[QafooLabs\Refactoring\Domain\Model\RefactoringException]  
  The range 136-136 is not inside one single method.         

rename-local-variable file line name new-name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions