From 1e9d2c31e8f86c19558032e1299dad3d12c87099 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 2 Jun 2023 15:38:39 +0300 Subject: [PATCH] Fixing broken mtgMetaInterface::getImplements() method --- metagen.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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()