Skip to content

Commit 28aa13d

Browse files
authored
fix(php): support guzzlehttp/psr7 v3 (#6945)
1 parent 4721076 commit 28aa13d

10 files changed

Lines changed: 530 additions & 116 deletions

File tree

โ€Ž.github/workflows/check.ymlโ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,14 @@ jobs:
427427
name: clients-${{matrix.client.language }}
428428
path: clients-${{matrix.client.language }}.zip
429429

430+
- name: Run PHP CTS on Guzzle 7
431+
if: ${{ matrix.client.language == 'php' && matrix.client.isMainVersion }}
432+
run: |
433+
composer update "guzzlehttp/guzzle:^7.0" --with-all-dependencies --working-dir=${{ matrix.client.path }}
434+
yarn cli cts run php --no-e2e -v
435+
git checkout -- ${{ matrix.client.path }}/composer.lock
436+
composer install --working-dir=${{ matrix.client.path }}
437+
430438
kotlin_build_macos:
431439
timeout-minutes: 15
432440
runs-on: macos-14

โ€Žclients/algoliasearch-client-php/composer.jsonโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
"ext-curl": "*",
1818
"ext-json": "*",
1919
"ext-mbstring": "*",
20-
"guzzlehttp/psr7": "^2.0",
20+
"guzzlehttp/psr7": "^2.0 || ^3.0",
2121
"psr/http-message": "^1.1 || ^2.0",
2222
"psr/log": "^1.0 || ^2.0 || ^3.0",
2323
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
2424
},
2525
"require-dev": {
2626
"friendsofphp/php-cs-fixer": "^3.91.3",
27+
"guzzlehttp/guzzle": "^7.0 || ^8.0",
2728
"phpunit/phpunit": "^10.0",
2829
"vlucas/phpdotenv": "^5.4",
2930
"phpstan/phpstan": "^1.12"

0 commit comments

Comments
ย (0)