1.2.1085. Set Parent Definition

This command creates a DEFINITION link between parent keyword and the actual parent class.

<?php

class x {
    const A = 1;
}

class y extends x {
    function foo() {
        // 'parent' needs a DEFFINITION link to the class x
        return parent::A;
    }
}

?>

See also Scope Resolution Operator (::).

1.2.1085.1. Specs

Short name

Complete/SetParentDefinition

Rulesets

All, CE, Changed Behavior, NoDoc

Exakat since

1.9.2

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

High

Features

parent

Available in

Entreprise Edition, Community Edition, Exakat Cloud