diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-30 07:32:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-30 07:32:58 +0900 |
| commit | 7f3246e4582a488327f2a9da01111db1a4a32b91 (patch) | |
| tree | c37f919e41949d1b482aaae4bedbdd2f65b5baef /src/WebAssembly/Debug/Debug.php | |
| parent | 6f18d4c860f16f094e9b3dececeb47be2a94d585 (diff) | |
| download | php-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.php | 6 |
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 |
