1.2.1276. Unset Arguments¶
There is no need to unset arguments. Those values will be freed at the end of the function anyhow.
<?php
function foo($a, $b) {
$b = $a * 2;
// This is useless. $a will be freed at the end of the function.
unset($a);
}
?>
1.2.1276.1. Specs¶
Short name |
Functions/UnsetOnArguments |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Features |
argument |
Available in |