Add quickfix for bad visibility modifiers
Open
major-league-hacking
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
Sample bad code:
```hack
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.
```hack
class MyParent {
public function foo(): void {}
}
class MyChild extends MyParent {
public function foo(): void {}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.