1.2.680. Method Is Overwritten

This rule marks a method that is overwritten in a child class.

<?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.680.1. Specs

Short name

Classes/MethodIsOverwritten

Rulesets

All

Exakat since

0.10.9

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

inheritance

Available in

Entreprise Edition, Exakat Cloud