From 8a083ed74e9f4472441175e187208012927ed357 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 11 Jul 2024 03:50:50 +0900 Subject: feat: simplify ValType structure --- src/WebAssembly/Execution/ElemInst.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/WebAssembly/Execution/ElemInst.php') diff --git a/src/WebAssembly/Execution/ElemInst.php b/src/WebAssembly/Execution/ElemInst.php index 422cd62..8840292 100644 --- a/src/WebAssembly/Execution/ElemInst.php +++ b/src/WebAssembly/Execution/ElemInst.php @@ -4,15 +4,16 @@ declare(strict_types=1); namespace Nsfisis\Waddiwasi\WebAssembly\Execution; -use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\RefType; +use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType; final readonly class ElemInst { /** + * @param ValType::FuncRef|ValType::ExternRef $type * @param list $elem */ public function __construct( - public RefType $type, + public ValType $type, public array $elem, ) { } -- cgit v1.3-1-g0d28