1.2.1078. Set Class Remote Definition With Local New

Links method calls and properties to its definition, thanks to the local new. The link is DEFINITION.

<?php

class x {
    public function bar() {    }
}

function foo() {
    $a = new x;

    // This links to class x, method bar(), thanks to the local new.
    return $a->bar();
}

?>

1.2.1078.1. Specs

Short name

Complete/SetClassRemoteDefinitionWithLocalNew

Rulesets

All, Changed Behavior, NoDoc

Exakat since

1.9.3

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Available in

Entreprise Edition, Exakat Cloud