Skip to content

Commit 3e0e872

Browse files
committed
minor #38 chore: allow mongodb/mongodb 2.0 (#341) (OskarStark)
This PR was merged into the main branch. Discussion ---------- chore: allow mongodb/mongodb 2.0 (#341) | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | | License | MIT Cherry picking php-llm/llm-chain#341 Commits ------- aad5b53 chore: allow mongodb/mongodb 2.0 (#341)
2 parents 006553d + aad5b53 commit 3e0e872

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/unit-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ concurrency:
1414
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1515
cancel-in-progress: true
1616

17+
env:
18+
REQUIRED_PHP_EXTENSIONS: 'mongodb'
19+
1720
jobs:
1821
php:
1922
runs-on: ubuntu-latest
@@ -57,6 +60,7 @@ jobs:
5760
with:
5861
php-version: ${{ matrix.php-version }}
5962
tools: flex
63+
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
6064

6165
- name: Install root dependencies
6266
run: composer install

src/store/composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@
2929
"symfony/uid": "^6.4 || ^7.1",
3030
"webmozart/assert": "^1.11"
3131
},
32-
"conflict": {
33-
"mongodb/mongodb": "<1.21"
34-
},
3532
"require-dev": {
3633
"codewithkyrian/chromadb-php": "^0.2.1 || ^0.3 || ^0.4",
37-
"mongodb/mongodb": "^1.21",
34+
"mongodb/mongodb": "^1.21 || ^2.0",
3835
"phpstan/phpstan": "^2.0",
3936
"phpstan/phpstan-webmozart-assert": "^2.0",
4037
"phpunit/phpunit": "^11.5",

0 commit comments

Comments
 (0)