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 --- examples/rubyvm-on-php-on-wasm/php-wasm.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/rubyvm-on-php-on-wasm') diff --git a/examples/rubyvm-on-php-on-wasm/php-wasm.php b/examples/rubyvm-on-php-on-wasm/php-wasm.php index c89c8c4..3f5b9d0 100644 --- a/examples/rubyvm-on-php-on-wasm/php-wasm.php +++ b/examples/rubyvm-on-php-on-wasm/php-wasm.php @@ -16,9 +16,11 @@ $wasmBinaryStream = new FileStream(__DIR__ . '/php-wasm.wasm'); $linker = require_once __DIR__ . '/emscripten_bridge.php'; $runtime = Runtime::instantiateFromStream($wasmBinaryStream, $linker); -$codePtr = allocateStringOnWasmMemory($runtime, strtr(PHP_HELLO_WORLD, ['%DIR%' => __DIR__])); +$codePtr = allocateStringOnWasmMemory($runtime, strtr(PHP_HELLO_WORLD, [ + '%DIR%' => __DIR__, +])); -$results = $runtime->invoke("php_wasm_run", [$codePtr]); +$results = $runtime->invoke('php_wasm_run', [$codePtr]); \assert(\count($results) === 1); $exitCode = $results[0]; \assert(\is_int($exitCode)); -- cgit v1.2.3-70-g09d2