Skip to content

Commit 754b9a2

Browse files
carlosmieittodua
andauthored
chore: debug static test detection (ccxt#25047)
* chore: debug static test detection * upgrade php version * react-promise * react-timer * other deps * missing key * static dep * fully qualified names * static deps * lock file * remove composer lock * temp removal of ymls * add composer.lock back * test files edits * - Revert "temp removal of ymls" This reverts commit db476d5. * assert redef * yaml * zend check * sample response * react inline * Update gate.json * Update gate.json * extra space * remove workflow * check * php 8.4 in live-tests * minor * dynamic props * - Revert "remove workflow" This reverts commit b2e2e4d. * implicit nullable --------- Co-authored-by: t.t <[email protected]>
1 parent 7226dbd commit 754b9a2

File tree

24 files changed

+2483
-198
lines changed

24 files changed

+2483
-198
lines changed

.github/workflows/php.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ jobs:
4040
- name: Setup PHP with PECL extension
4141
uses: shivammathur/setup-php@v2
4242
with:
43-
php-version: '8.1'
44-
cache: true
43+
php-version: '8.4'
44+
# cache: true
45+
ini-values: |
46+
zend.assertions=1
47+
display_errors=On
4548
- uses: actions/setup-node@v4
4649
with:
4750
node-version: '20'
@@ -143,6 +146,14 @@ jobs:
143146
path: php/
144147
- name: Restore shared_env
145148
run: ./utils/restore_shared_env.sh
149+
- name: Setup PHP with PECL extension
150+
uses: shivammathur/setup-php@v2
151+
with:
152+
php-version: '8.4'
153+
# cache: true
154+
ini-values: |
155+
zend.assertions=1
156+
display_errors=On
146157
- uses: actions/setup-node@v4
147158
with:
148159
node-version: '20'

build/transpile.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -990,13 +990,13 @@ class Transpiler {
990990
precisionImports.push ('use ccxt\\Precise;')
991991
}
992992
if (bodyAsString.match (/Async\\await/)) {
993-
libraryImports.push ('use React\\Async;')
993+
libraryImports.push ('use \\React\\Async;')
994994
}
995995
if (bodyAsString.match (/Promise\\all/)) {
996-
libraryImports.push ('use React\\Promise;')
996+
libraryImports.push ('use \\React\\Promise;')
997997
}
998998
if (bodyAsString.match (/: PromiseInterface/)) {
999-
libraryImports.push ('use React\\Promise\\PromiseInterface;')
999+
libraryImports.push ('use \\React\\Promise\\PromiseInterface;')
10001000
}
10011001
}
10021002

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@
237237
"ext-gmp": "*",
238238
"symfony/polyfill-mbstring": "^1.7",
239239
"pear/console_table": "1.3.1",
240-
"react/http": ">=1.6.0",
241-
"react/async": "^4.0.0",
242-
"react/promise": "^3.0.0",
243-
"react/promise-timer": "^1.10",
240+
"react/http": ">=1.11.0",
241+
"react/async": "^4.3.0",
242+
"react/promise": "^3.2.0",
243+
"react/promise-timer": "^1.11",
244244
"evenement/evenement": "^3.0",
245245
"guzzlehttp/psr7": "^2.0"
246246
},

0 commit comments

Comments
 (0)