aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/BinaryFormat/Decoder.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-29 18:23:59 +0900
committernsfisis <nsfisis@gmail.com>2025-10-18 19:47:13 +0900
commita0ec6fc11cbb68d5912e850b9f73b94f4560d510 (patch)
tree070ab472bb1bd3c5bb739b2b19052d1083fe9acd /src/WebAssembly/BinaryFormat/Decoder.php
parent2656a7d724c2738bd8fa8d3a876a1228642bf54e (diff)
downloadphp-waddiwasi-a0ec6fc11cbb68d5912e850b9f73b94f4560d510.tar.gz
php-waddiwasi-a0ec6fc11cbb68d5912e850b9f73b94f4560d510.tar.zst
php-waddiwasi-a0ec6fc11cbb68d5912e850b9f73b94f4560d510.zip
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;