1.2.684. Method Is Overwritten¶
This rule marks a method that is overwritten in a child class.
Any child that overwrite the method make that method reported here: the result may be partial.
This rule may lead to the usage of the Override
attribute.
<?php
class A {
function intactMethodA() {} // Not overwritten in any children
function overwrittenMethodInAA() {} // overwritten in AA
}
class AA extends A {
function intactMethodAA() {} // Not overwritten, because no extends
function overwrittenMethodInAA() {} // Not overwritten, because no extends
}
?>
1.2.684.1. Connex PHP features¶
1.2.684.1.1. Specs¶
Short name |
Classes/MethodIsOverwritten |
Rulesets |
|
Exakat since |
0.10.9 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |