1.2.1263. 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.1263.2. Connex PHP features¶
1.2.1263.2.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.1263.2.2. Specs¶
Short name |
Classes/UndefinedStaticMP |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Examples |
|
Available in |