From 7f3246e4582a488327f2a9da01111db1a4a32b91 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 30 Jul 2025 07:32:58 +0900 Subject: chore: enable common ruleset of ecs --- src/WebAssembly/Debug/Debug.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/WebAssembly/Debug/Debug.php') 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 -- cgit v1.2.3-70-g09d2