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/Structure/Modules/Elem.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/WebAssembly/Structure/Modules/Elem.php') diff --git a/src/WebAssembly/Structure/Modules/Elem.php b/src/WebAssembly/Structure/Modules/Elem.php index 1b9831f..646315d 100644 --- a/src/WebAssembly/Structure/Modules/Elem.php +++ b/src/WebAssembly/Structure/Modules/Elem.php @@ -5,15 +5,16 @@ declare(strict_types=1); namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Modules; use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr; -use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\RefType; +use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType; final readonly class Elem { /** + * @param ValType::FuncRef|ValType::ExternRef $type * @param list> $init */ public function __construct( - public RefType $type, + public ValType $type, public array $init, public ElemMode $mode, ) { -- cgit v1.2.3-70-g09d2