1.2.1371. Used Static Properties

List of all static properties that are used.

A private property is used when it is defined and read. A private property that is only written is not used. A property that is only read is used, as it may have a default value, or act as NULL.

<?php

class foo {
    // This is a used property (see bar method)
    private $used = 1;

    function bar($a) {
        $this->used += $a;

        return $this->used;
    }
}

?>

1.2.1371.1. Specs

Short name

Classes/UsedPrivateProperty

Rulesets

All

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

High

Features

class, static

Available in

Entreprise Edition, Exakat Cloud