1.2.1074. Set Class Method Remote Definition

Links method to the method definition. The link is DEFINITION.

Static method calls and normal method calls are both solved with this rule. Parent classes and trait are also searched for the right method.

<?php

class x {
    public function __construct() {}
    public function foo() {}
}

// This links to __construct method
$a = new x;

// This links to foo() method
$a->foo();

?>

1.2.1074.1. Specs

Short name

Complete/SetClassMethodRemoteDefinition

Rulesets

All, Changed Behavior, NoDoc

Exakat since

1.9.3

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

method

Available in

Entreprise Edition, Exakat Cloud