1.2.196. Collects Variables

This rule collects all variables from the code. Their type is mentionned, as variable, object or array, depending on their usage.

<?php

// variable : array
$array[1] = 2;

// variable : variable
$value = 3;

// variable : object
$object->property;

?>

1.2.196.1. Specs

Short name

Dump/CollectVariables

Rulesets

All, CE, Dump

Exakat since

2.1.7

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

variable

Available in

Entreprise Edition, Community Edition, Exakat Cloud