diff --git a/packages/php-wasm/universal/src/lib/load-php-runtime.ts b/packages/php-wasm/universal/src/lib/load-php-runtime.ts index c293cf2579..64192c59cf 100644 --- a/packages/php-wasm/universal/src/lib/load-php-runtime.ts +++ b/packages/php-wasm/universal/src/lib/load-php-runtime.ts @@ -204,8 +204,9 @@ const makePromise = () => { const methods: any = []; const promise = new Promise((resolve, reject) => { - methods.push(promise, resolve, reject); + methods.push(resolve, reject); }); + methods.unshift(promise); return methods as [Promise, (v?: any) => void, (e?: any) => void]; };