1.2.1254. Undefined static:: Or self::

The identified property or method are undefined. self and static refer to the current class, or one of its parent or trait.

<?php

class x {
    static public function definedStatic() {}
    private definedStatic = 1;

    public function method() {
        self::definedStatic();
        self::undefinedStatic();

        static::definedStatic;
        static::undefinedStatic;
    }
}

?>

See also Late Static Bindings.

1.2.1254.1. Suggestions

  • Define the missing method or property

  • Remove usage of that undefined method or property

  • Fix name to call an actual local structure

  • Fix object to one of the local property

1.2.1254.2. Specs

Short name

Classes/UndefinedStaticMP

Rulesets

All, Analyze, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

static

Examples

xataface, SugarCrm

Available in

Entreprise Edition, Exakat Cloud