diff --git a/src/bind.inc.php b/src/bind.inc.php index 1ab65c7..ccf84fd 100644 --- a/src/bind.inc.php +++ b/src/bind.inc.php @@ -352,7 +352,7 @@ function bhl_type(\mtgType $type = null) } else if($type instanceof \mtgMetaFunc) { - $ret_type = $type->getReturnType() ? bhl_gen_type($type->getReturnType()) : 'void'; + $ret_type = $type->getReturnType() ? bhl_type($type->getReturnType()) : 'void'; $str = ""; $str .= "func $ret_type(";