Skip to content

Commit be29986

Browse files
committed
Install the mongodb-odm for the static analysis
The composer config fakes the availability of ext-mongodb during the dependency resolution (affecting only the case where FOSUserBundle is the root package) as we don't need to be able to actually execute the ODM to be able to do static analysis. This allows to avoid requiring ext-mongodb for contributors.
1 parent 8245475 commit be29986

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
},
5151
"require-dev": {
5252
"doctrine/doctrine-bundle": "^1.3 || ^2",
53+
"doctrine/mongodb-odm": "^2.16",
5354
"doctrine/orm": "^2.6.3 || ^3",
5455
"friendsofphp/php-cs-fixer": "^3.0.2, !=3.5.0",
5556
"phpstan/phpstan": "^2.1",
@@ -62,6 +63,9 @@
6263
"symfony/phpunit-bridge": "^6.4 || ^7.0"
6364
},
6465
"config": {
66+
"platform": {
67+
"ext-mongodb": "2.1.8"
68+
},
6569
"sort-packages": true
6670
},
6771
"extra": {

0 commit comments

Comments
 (0)