Support abstract consts, ban redefining consts in all circumstances
未关闭
feature request
hack
- 主要语言
- C++
- 星标
- 18.7k
- 派生
- 3.1k
- 平均合并
- 1 小时 47 分钟
- 30 天内合并 PR
- 2
描述
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.
贡献指南
评估
这个 Issue 还没有评估数据。