1.2.686. Methods That Should Not Be Used¶
Those functions could also be marked as deprecated, with an attribute or a phpdoc. This is not taken into account by this analysis.
<?php
function obsoleteFoo() {
throw new exception('Don\'t use obsoleteFoo() but rather the new version of foo().');
}
?>
1.2.686.1. Specs¶
Short name |
Functions/CantUse |
Rulesets |
|
Exakat since |
1.8.7 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Features |
function, deprecated |
Available in |