facebook / facebook/hhvm

Add quickfix for bad visibility modifiers

Open
#8,962 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.