1.2.189. Collect Static Class Changes

Collects changes to constants, methods and properties, within a class hierarchy. It reports changes in visibility, type and values for constants; visibility, type and values for properties.

<?php

class x {
    protected $property = 1;

    protected function method() {}
}

class y extends x {
    // $property is changed
    protected $property = 2;

    // method is not changed
    protected function method() {}
}

?>

1.2.189.1. Specs

Short name

Dump/CollectClassChanges

Rulesets

All, CE, Changed Behavior, Dump

Exakat since

2.1.5

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Available in

Entreprise Edition, Community Edition, Exakat Cloud