1.2.1272. Unresolved Classes

The following classes are instantiated in the code, but their definition couldn’t be found in that same code. They might be defined in an extension or an external component.

<?php

class Foo extends Bar {
    private function foobar() {
        // here, parent is not resolved, as Bar is not defined in the code.
        return parent::$prop;
    }
}

?>

1.2.1272.1. Suggestions

  • Check for namespaces and aliases and make sure they are correctly configured.

1.2.1272.2. Specs

Short name

Classes/UnresolvedClasses

Rulesets

All, Analyze, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Major

Time To Fix

Quick (30 mins)

Precision

Very high

Features

class

Available in

Entreprise Edition, Exakat Cloud