diff --git a/metagen.inc.php b/metagen.inc.php index 993e77d..f08e3b6 100644 --- a/metagen.inc.php +++ b/metagen.inc.php @@ -287,7 +287,13 @@ class mtgMetaInterface extends mtgUserType function getImplements() { - return $this->parent ? $this->parent->resolve() : null; + if(!$this->implements) + return array(); + + $imps = array(); + foreach($this->implements as $imp) + $imps[] = $imp->resolve(); + return $imps; } function getFuncs()