aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Execution/Ref.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Execution/Ref.php')
-rw-r--r--src/WebAssembly/Execution/Ref.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/WebAssembly/Execution/Ref.php b/src/WebAssembly/Execution/Ref.php
index f7b6760..f9791d2 100644
--- a/src/WebAssembly/Execution/Ref.php
+++ b/src/WebAssembly/Execution/Ref.php
@@ -4,11 +4,14 @@ declare(strict_types=1);
namespace Nsfisis\Waddiwasi\WebAssembly\Execution;
-use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\RefType;
+use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType;
abstract readonly class Ref
{
- final public static function RefNull(RefType $type): Refs\RefNull
+ /**
+ * @param ValType::FuncRef|ValType::ExternRef $type
+ */
+ final public static function RefNull(ValType $type): Refs\RefNull
{
return new Refs\RefNull($type);
}