aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Debug/Debug.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-30 07:32:58 +0900
committernsfisis <nsfisis@gmail.com>2025-07-30 07:32:58 +0900
commit7f3246e4582a488327f2a9da01111db1a4a32b91 (patch)
treec37f919e41949d1b482aaae4bedbdd2f65b5baef /src/WebAssembly/Debug/Debug.php
parent6f18d4c860f16f094e9b3dececeb47be2a94d585 (diff)
downloadphp-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.tar.gz
php-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.tar.zst
php-waddiwasi-7f3246e4582a488327f2a9da01111db1a4a32b91.zip
chore: enable common ruleset of ecs
Diffstat (limited to 'src/WebAssembly/Debug/Debug.php')
-rw-r--r--src/WebAssembly/Debug/Debug.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WebAssembly/Debug/Debug.php b/src/WebAssembly/Debug/Debug.php
index 99eefb0..a906b6c 100644
--- a/src/WebAssembly/Debug/Debug.php
+++ b/src/WebAssembly/Debug/Debug.php
@@ -36,7 +36,7 @@ final readonly class Debug
ImportDescs\Global_::class => self::globalTypeToString($desc->global),
default => 'unknown',
};
- echo "$mod::$name: $type $extraInfo\n";
+ echo "{$mod}::{$name}: {$type} {$extraInfo}\n";
}
}
@@ -65,7 +65,7 @@ final readonly class Debug
{
$params = implode(', ', array_map(self::valTypeToString(...), $type->params));
$results = implode(', ', array_map(self::valTypeToString(...), $type->results));
- return "($params) -> ($results)";
+ return "({$params}) -> ({$results})";
}
private static function valTypeToString(ValType $type): string
@@ -85,7 +85,7 @@ final readonly class Debug
{
$min = $limit->min;
$max = $limit->max;
- return $max === null ? "[$min, inf)" : "[$min, $max]";
+ return $max === null ? "[{$min}, inf)" : "[{$min}, {$max}]";
}
private static function mutToString(Mut $mut): string