Skip to content

Commit

Permalink
Merge branch 'v2.x' into merge-v1.x-into-v2.x-1727682441248
Browse files Browse the repository at this point in the history
* v2.x:
  PHPLIB-1518 `WriteResult::get*Count()` always return an int on acknowledged result (#1454)
  PHPLIB-954: Add return types to all methods (#1391)
  PHPLIB-797: Remove unused methods in UnsupportedException (#1436)
  Revert "Add final annotations to non-internal Operation classes (#1410)"
  PHPLIB-953 Make internal classes and Operation classes final (#1392)
  PHPLIB-1218 Remove deprecated fields from GridFS files (#1398)
  • Loading branch information
alcaeus committed Sep 30, 2024
2 parents 0527fa4 + 5888c6d commit 4030523
Show file tree
Hide file tree
Showing 124 changed files with 876 additions and 1,537 deletions.
2 changes: 0 additions & 2 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,3 @@ include:
- filename: .evergreen/config/generated/test/require-api-version.yml
- filename: .evergreen/config/generated/test/csfle.yml
- filename: .evergreen/config/generated/test-variant/modern-php-full.yml
- filename: .evergreen/config/generated/test-variant/phpc.yml
- filename: .evergreen/config/generated/test-variant/lowest.yml
5 changes: 3 additions & 2 deletions .evergreen/config/generate-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@

// Test variants
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'modern-php-full.yml', $supportedPhpVersions);
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'phpc.yml', [$latestPhpVersion]);
$allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'lowest.yml', [$lowestPhpVersion]);
// TODO: Re-enable when 2.0.0 is released
// $allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'phpc.yml', [$latestPhpVersion]);
// $allFiles[] = generateConfigs('buildvariants', 'test-variant', 'phpVersion', 'lowest.yml', [$lowestPhpVersion]);

echo "Generated config. Use the following list to import files:\n";
echo implode("\n", array_map('getImportConfig', $allFiles)) . "\n";
Expand Down
186 changes: 99 additions & 87 deletions .evergreen/config/generated/build/build-extension.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions .evergreen/config/generated/test-variant/lowest.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .evergreen/config/generated/test-variant/phpc.yml

This file was deleted.

62 changes: 33 additions & 29 deletions .evergreen/config/templates/build/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,38 @@
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
- func: "upload extension"
- name: "build-php-%phpVersion%-lowest"
tags: ["build", "php%phpVersion%", "lowest", "pr", "tag"]
commands:
- func: "locate PHP binaries"
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
vars:
EXTENSION_VERSION: "1.20.0"
- func: "upload extension"
- name: "build-php-%phpVersion%-next-stable"
tags: ["build", "php%phpVersion%", "next-stable", "pr", "tag"]
commands:
- func: "locate PHP binaries"
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
vars:
EXTENSION_BRANCH: "v1.20"
- func: "upload extension"
- name: "build-php-%phpVersion%-next-minor"
tags: ["build", "php%phpVersion%", "next-minor"]
commands:
- func: "locate PHP binaries"
vars:
PHP_VERSION: "%phpVersion%"
- func: "compile extension"
# TODO: remove once 2.0.0 is released
vars:
EXTENSION_BRANCH: "v1.x"
EXTENSION_BRANCH: "v2.x"
- func: "upload extension"
# TODO: re-enable once 2.0.0 is released
# - name: "build-php-%phpVersion%-lowest"
# tags: ["build", "php%phpVersion%", "lowest", "pr", "tag"]
# commands:
# - func: "locate PHP binaries"
# vars:
# PHP_VERSION: "%phpVersion%"
# - func: "compile extension"
# vars:
# EXTENSION_VERSION: "2.0.0"
# - func: "upload extension"
# - name: "build-php-%phpVersion%-next-stable"
# tags: ["build", "php%phpVersion%", "next-stable", "pr", "tag"]
# commands:
# - func: "locate PHP binaries"
# vars:
# PHP_VERSION: "%phpVersion%"
# - func: "compile extension"
# vars:
# EXTENSION_BRANCH: "v2.0"
# - func: "upload extension"
# - name: "build-php-%phpVersion%-next-minor"
# tags: ["build", "php%phpVersion%", "next-minor"]
# commands:
# - func: "locate PHP binaries"
# vars:
# PHP_VERSION: "%phpVersion%"
# - func: "compile extension"
# vars:
# EXTENSION_BRANCH: "v2.x"
# - func: "upload extension"
4 changes: 3 additions & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ on:

env:
PHP_VERSION: "8.2"
DRIVER_VERSION: "stable"
# TODO: change to "stable" once 2.0.0 is released
# DRIVER_VERSION: "stable"
DRIVER_VERSION: "mongodb/[email protected]"

jobs:
phpcs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:

env:
PHP_VERSION: "8.2"
# TODO: change to "stable" once 1.20.0 is released
# TODO: change to "stable" once 2.0.0 is released
# DRIVER_VERSION: "stable"
DRIVER_VERSION: "mongodb/mongo-php-driver@v1.20"
DRIVER_VERSION: "mongodb/mongo-php-driver@v2.x"

jobs:
psalm:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ on:

env:
PHP_VERSION: "8.2"
DRIVER_VERSION: "stable"
# TODO: change to "stable" once 2.0.0 is released
# DRIVER_VERSION: "stable"
DRIVER_VERSION: "mongodb/[email protected]"

jobs:
psalm:
Expand Down
Loading

0 comments on commit 4030523

Please sign in to comment.