1.2.181. Collect Literals

Collects all literals in the application. Strings, integer, float are collected. Booleans, null <https://www.php.net/`null>`_ and arrays are not.

<?php

$a = 1;

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

?>

1.2.181.1. Connex PHP features

1.2.181.1.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