1.2.690. Methods That Should Not Be Used¶
These methods and functions only throw an exception, or raise an error. As such, they are a warning that such function or method shouldn’t 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.690.1. Connex PHP features¶
1.2.690.1.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 |
Available in |