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

Add quickfix for bad visibility modifiers #8962

Open
Wilfred opened this issue Jan 22, 2022 · 0 comments
Open

Add quickfix for bad visibility modifiers #8962

Wilfred opened this issue Jan 22, 2022 · 0 comments

Comments

@Wilfred
Copy link
Contributor

Wilfred commented Jan 22, 2022

Sample bad code:

class MyParent {
  public function foo(): void {}
}

class MyChild extends MyParent {
  // autofix: public function
  protected function foo(): void {}
}

After applying the quickfix, the visibility should match the parent class.

class MyParent {
  public function foo(): void {}
}

class MyChild extends MyParent {
  public function foo(): void {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant