1.2.1001. Propagate Constants¶
This command calculates constant expression values, and set them in the graph.
After running this command, B has intval
of 3.
This command propagate const
constants, class constants and define() constants, when possible.
<?php
const A = 1;
const B = A + 2;
?>
1.2.1001.1. Connex PHP features¶
1.2.1001.1.1. Specs¶
Short name |
Complete/PropagateConstants |
Rulesets |
|
Exakat since |
1.9.2 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
High |
Available in |