Fixing broken mtgMetaInterface::getImplements() method

This commit is contained in:
Pavel Shevaev 2023-06-02 15:38:39 +03:00
parent 68898b4327
commit 1e9d2c31e8
1 changed files with 7 additions and 1 deletions

View File

@ -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()