1.2.178. Collect Literals

Collects all literals in the application. Strings, integer, float are collected. Booleans, null and arrays are not.

<?php

$a = 1;

// The array is not collected, but the C and 4 are.
$b = ['C' => 4];
?>

1.2.178.1. Specs

Short name

Dump/CollectLiterals

Rulesets

All, CE, Changed Behavior, Dump

Exakat since

1.9.5

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

High

Available in

Entreprise Edition, Community Edition, Exakat Cloud