From 6d99d369563092032a658767e07405a563ec1cf7 Mon Sep 17 00:00:00 2001 From: Madpwnhammer Date: Mon, 11 Dec 2023 15:10:28 +0300 Subject: [PATCH] added bhl_no_array_proxy --- src/bind.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bind.inc.php b/src/bind.inc.php index 51af1c1..c5266a8 100644 --- a/src/bind.inc.php +++ b/src/bind.inc.php @@ -17,6 +17,7 @@ function supported_tokens() 'bhl_native_class_params', 'bhl_native_prefix', 'bhl_custom_rw', + 'bhl_no_array_proxy', 'bhl_get', 'bhl_set', 'bhl_ref_arg', @@ -89,7 +90,7 @@ function prepare_meta(\mtgMetaInfo $orig) //NOTE: let's replace arrays with array proxies foreach($fields as $name => $fld) { - if($fld->getType() instanceof \mtgArrType) + if($fld->getType() instanceof \mtgArrType && !$fld->hasToken('bhl_no_array_proxy')) { $proxy_name = "List_{$fld->getType()->getValue()->getName()}"; if(!isset($arr_proxies[$proxy_name]))