1.2.686. 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.686.1. Specs

Short name

Functions/CantUse

Rulesets

All, CE, Changed Behavior

Exakat since

1.8.7

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

function, deprecated

Available in

Entreprise Edition, Community Edition, Exakat Cloud