1.2.139. Class Injection Count¶
Counts the number of arguments in the constructor. Variadic arguments are counted as one. The more injections in a constructor, the harder it is to use it. Although, the threshold for difficulty is probably quite high.
<?php
class x {
function __constructor(A $a, B, $b) {
}
}
?>
1.2.139.1. Specs¶
Short name |
Dump/ClassInjectionCount |
Rulesets |
|
Exakat since |
2.5.3 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |