Skip to content

Commit 3a62df1

Browse files
Merge v1.20 into v1.x (#1486)
2 parents 48a78c7 + c0528b7 commit 3a62df1

File tree

6 files changed

+117
-4
lines changed

6 files changed

+117
-4
lines changed

.evergreen/config/functions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ functions:
325325
working_dir: "src"
326326
script: |
327327
${PREPARE_SHELL}
328-
file="${PROJECT_DIRECTORY}/.evergreen/install-composer.sh"
329-
# Don't use ${file} syntax here because evergreen treats it as an empty expansion.
330-
[ -f "$file" ] && DEPENDENCIES=${DEPENDENCIES} bash $file || echo "$file not available, skipping"
328+
DEPENDENCIES=${DEPENDENCIES} \
329+
PHP_VERSION=${PHP_VERSION} \
330+
bash ${PROJECT_DIRECTORY}/.evergreen/install-composer.sh
331331
332332
"start load balancer":
333333
- command: shell.exec

.evergreen/config/generate-config.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33

44
// Supported PHP versions. Add new versions to the beginning of the list
55
$supportedPhpVersions = [
6+
'8.4',
67
'8.3',
78
'8.2',
89
'8.1',
910
];
1011

11-
$latestPhpVersion = max($supportedPhpVersions);
12+
// TODO: use max() once PHP 8.4 is stable
13+
//$latestPhpVersion = max($supportedPhpVersions);
14+
$latestPhpVersion = '8.3';
1215
$lowestPhpVersion = min($supportedPhpVersions);
1316

1417
// Supported MongoDB versions. Add new versions after "rapid"

.evergreen/config/generated/build/build-extension.yml

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/config/generated/test-variant/modern-php-full.yml

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.evergreen/install-composer.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,9 @@ php --ri mongodb
3838

3939
install_composer
4040

41+
# Remove psalm as it's not compatible with PHP 8.4: https://github.com/vimeo/psalm/pull/10928
42+
if [ "$PHP_VERSION" == "8.4" ]; then
43+
php composer.phar remove --no-update --dev vimeo/psalm
44+
fi
45+
4146
php composer.phar update $COMPOSER_FLAGS

tests/GridFS/BucketFunctionalTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,9 @@ public function testDanglingOpenWritableStream(): void
874874

875875
$code = <<<'PHP'
876876
require '%s';
877+
// Don't report deprecations - if the issue exists this code will
878+
// result in a fatal error
879+
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
877880
$client = MongoDB\Tests\FunctionalTestCase::createTestClient();
878881
$database = $client->selectDatabase(getenv('MONGODB_DATABASE') ?: 'phplib_test');
879882
$gridfs = $database->selectGridFSBucket();
@@ -914,6 +917,9 @@ public function testDanglingOpenWritableStreamWithGlobalStreamWrapperAlias(): vo
914917

915918
$code = <<<'PHP'
916919
require '%s';
920+
// Don't report deprecations - if the issue exists this code will
921+
// result in a fatal error
922+
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
917923
$client = MongoDB\Tests\FunctionalTestCase::createTestClient();
918924
$database = $client->selectDatabase(getenv('MONGODB_DATABASE') ?: 'phplib_test');
919925
$database->selectGridFSBucket()->registerGlobalStreamWrapperAlias('alias');

0 commit comments

Comments
 (0)