Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dynamic] Property to MethodCall #125

Closed
TomasVotruba opened this issue Nov 1, 2017 · 0 comments
Closed

[Dynamic] Property to MethodCall #125

TomasVotruba opened this issue Nov 1, 2017 · 0 comments

Comments

@TomasVotruba
Copy link
Member

TomasVotruba commented Nov 1, 2017

Should cover

  • getter
  • setter

E.g Symfony 3.0

Before

 class CustomTranslator extends Translator
 {
     public function fooMethod()
     {
        // get locale
        $locale = $this->locale;

        // update locale
        $this->locale = $locale;
     }
 }

After

 class CustomTranslator extends Translator
 {
     public function fooMethod()
     {
        // get locale
        $locale = $this->getLocale();

        // update locale
        $this->setLocale($locale);
    }
 }
TomasVotruba added a commit that referenced this issue May 30, 2021
rectorphp/rector-src@0864547 [automated] Re-Generate Nodes/Rectors Documentation (#125)
echo511 pushed a commit to echo511/rector that referenced this issue Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant