1.2.41. Argument Counts Per Calls¶
Collects the number of arguments passed to PHP functions.
This is focused on PHP native functions, with optional characters. This helps detect unused or lesser know arguments.
<?php
// One entry, in_array 2 arguments
$c = in_array($array, $needle);
// One entry, in_array 3 arguments
$c = in_array($array, $needle, true);
?>
1.2.41.1. Specs¶
Short name |
Dump/ArgumentCountsPerCalls |
Rulesets |
|
Exakat since |
2.5.2 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |