1.2.899. Overwritten Constant¶
This command adds OVERWRITE link between class constant definitions.
A constant is overwritten by another when it is defined in one of the parent class or parent interface.
The A constant will be linked between classes x and y, with an OVERWRITE link.
<?php
class x {
protected const A = 1;
}
class y extends x {
protected const A = 1;
}
?>
1.2.899.1. Connex PHP features¶
1.2.899.1.1. Specs¶
Short name |
Complete/OverwrittenConstants |
Rulesets |
|
Exakat since |
1.9.2 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |