Support abstract consts, ban redefining consts in all circumstances
Open
feature request
hack
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
This is currently fine:
``` PHP
class A {
const FOO = 'bar';
}
class B extends A {
const FOO = 'baz';
}
```
Ideally, this would just be forbidden - however, static::BAR is used in some patterns. One way to ban this in the general case would be to support abstract constants.
Contributor guide
Assessment
This issue has not been assessed yet.