Add quickfix for missing parent::__construct()
Open
major-league-hacking
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
Example bad code:
```hack
class MyParent {
public function __construct() {}
}
class MyChild extends MyParent {
public function __construct() {
foo();
}
}
```
The quickfix should add the call at the beginning of the method.
```hack
class MyParent {
public function __construct() {}
}
class MyChild extends MyParent {
public function __construct() {
parent::__construct();
foo();
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.