From a0ec6fc11cbb68d5912e850b9f73b94f4560d510 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 29 Jul 2025 18:23:59 +0900 Subject: wip --- src/WebAssembly/BinaryFormat/Decoder.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/WebAssembly/BinaryFormat/Decoder.php') 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; -- cgit v1.2.3-70-g09d2