diff options
Diffstat (limited to 'src/WebAssembly/Structure/Modules/Elem.php')
| -rw-r--r-- | src/WebAssembly/Structure/Modules/Elem.php | 5 |
1 files changed, 3 insertions, 2 deletions
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<list<Instr>> $init */ public function __construct( - public RefType $type, + public ValType $type, public array $init, public ElemMode $mode, ) { |
