Skip to content

Commit 81f1a4e

Browse files
committed
ext-mongodb 2.1 is required by mongodb/mongodb 2.1.1
1 parent 4692659 commit 81f1a4e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,6 @@ jobs:
137137
run: "vendor/bin/phpunit --exclude-group=atlas ${{ matrix.dependencies == 'lowest' && '--do-not-fail-on-deprecation --do-not-fail-on-warning --do-not-fail-on-notice' || '' }}"
138138
env:
139139
DOCTRINE_MONGODB_SERVER: ${{ steps.setup-mongodb.outputs.cluster-uri }}
140+
USE_LAZY_GHOST_OBJECT: 0
140141
USE_NATIVE_LAZY_OBJECT: 1
141142
CRYPT_SHARED_LIB_PATH: ${{ steps.setup-mongodb.outputs.crypt-shared-lib-path }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"require": {
2727
"php": "^8.4",
28-
"ext-mongodb": "^2.0",
28+
"ext-mongodb": "^2.1",
2929
"composer-runtime-api": "^2.0",
3030
"doctrine/cache": "^1.11 || ^2.0",
3131
"doctrine/collections": "^1.5 || ^2.0",

src/Proxy/Factory/LazyGhostProxyFactory.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
2828
use function file_exists;
2929
use function file_put_contents;
3030
use function filemtime;
31-
use function get_debug_type;
3231
use function is_dir;
3332
use function is_int;
34-
use function is_scalar;
3533
use function is_writable;
3634
use function ltrim;
3735
use function mkdir;
@@ -115,7 +113,7 @@ public function __construct(
115113
}
116114

117115
if (is_int($autoGenerate) && ($autoGenerate < 0 || $autoGenerate > 4)) {
118-
throw new InvalidArgumentException(sprintf('Invalid auto generate mode "%s" given.', is_scalar($autoGenerate) ? (string) $autoGenerate : get_debug_type($autoGenerate)));
116+
throw new InvalidArgumentException(sprintf('Invalid auto generate mode "%d" given.', $autoGenerate));
119117
}
120118

121119
$this->uow = $dm->getUnitOfWork();

0 commit comments

Comments
 (0)