aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/BinaryFormat/Decoder.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-21 23:22:25 +0900
committernsfisis <nsfisis@gmail.com>2026-02-21 23:22:35 +0900
commit39e6c4bfb1f3fb96bba47e3eec8e6451038a3d22 (patch)
tree619472dd31a38ae277299495d0ff213e31093dfb /src/WebAssembly/BinaryFormat/Decoder.php
parent2bea3784061a33870d4678af011ffc6fc73c6ad3 (diff)
downloadphp-waddiwasi-main.tar.gz
php-waddiwasi-main.tar.zst
php-waddiwasi-main.zip
feat: implement validation phaseHEADmain
Diffstat (limited to 'src/WebAssembly/BinaryFormat/Decoder.php')
-rw-r--r--src/WebAssembly/BinaryFormat/Decoder.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/WebAssembly/BinaryFormat/Decoder.php b/src/WebAssembly/BinaryFormat/Decoder.php
index 90b1706..87e5640 100644
--- a/src/WebAssembly/BinaryFormat/Decoder.php
+++ b/src/WebAssembly/BinaryFormat/Decoder.php
@@ -38,7 +38,6 @@ use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType;
use function array_reduce;
use function assert;
use function count;
-use function get_class;
use function in_array;
use function is_int;
use function ord;
@@ -980,7 +979,7 @@ final class Decoder
$result = [];
while (true) {
$instr = $this->decodeInstr();
- if (in_array(get_class($instr), $delimiters, true)) {
+ if (in_array($instr::class, $delimiters, true)) {
return [$result, $instr];
}
$result[] = $instr;