Support abstract consts, ban redefining consts in all circumstances
Abierto
feature request
hack
- Lenguaje dominante
- C++
- Estrellas
- 18.7k
- Forks
- 3.1k
- Merge medio
- 1 h 47 min
- PR fusionados (30 d)
- 2
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.