Repository navigation
Update dependency mongodb/mongodb to v2.5.2 - #102
Conversation
cbf65c9 to
f9e3669
Compare
There was a problem hiding this comment.
Approved: no adaptation is required under the configured project policy.
Approve PR #102 unchanged. It updates only the locked MongoDB PHP library from 2.5.1 to 2.5.2 and merges cleanly into the recorded target. The locked install and offline MongoDB client smoke test passed on PHP 8.5.13 with ext-mongodb 2.5.9. The source CI snapshot reports both PHP and frontend checks green. Upstream still needs to replace object-backed BSONDocument storage before PHP 9 removes that support. Nagadmin already decodes documents into arrays. A future PHP 9 upgrade should use a MongoDB library release that resolves this upstream debt.
Agent-assessed risk: Low. The patch preserves platform constraints, its runtime changes replace PHP aliases and add a GridFS method outside Nagadmin’s usage, and the locked library loaded on the built runtime.
Evidence (12 items)
- Local check:
git diff d2770a8785ec9eac58ba3fa70d05895a296f123f...refs/artidezi/inputs/source-pr and git diff --check over the same range— The PR changes only the version, references and release metadata for mongodb/mongodb in app/composer.lock. The whitespace check passed. The package still requires PHP ^8.1 and ext-mongodb ^2.5. - Local check:
git merge-base and git merge-tree --write-tree d2770a8785ec9eac58ba3fa70d05895a296f123f refs/artidezi/inputs/source-pr— The merge base is the recorded target. The merge succeeded and produced tree 4abf6c12be3f461f4026d152fa37fac76c473714, identical to the source tree tested by CI. - Release notes: source — The release commit matches the lock. The highlighted change is PHP 8.6 compatibility.
- Upstream diff: source — The runtime diff replaces is_integer() with is_int(), moves the global logger registry from deprecated SplObjectStorage attach/detach aliases to offsetSet/offsetUnset, and adds a GridFS stream_flush() method that preserves chunk buffering.
- Upstream diff: source — Upstream deferred the BSONDocument object-backing migration because a simple array cast broke propagation of mutations between the document and its backing object.
- Documentation: source — PHP 8.5 deprecates the SPL aliases and object-backed ArrayObject/ArrayIterator ahead of removal in PHP 9. Object backing can violate class constraints.
- Documentation: source — PHP 8.6 deprecates legacy scalar-type aliases, including is_integer(), ahead of PHP 9 removal. The supported predicate is is_int().
- Local check:
git grep -n -Ei for GridFS, global logger registration, type maps, is_integer, SplObjectStorage, BSONDocument and ArrayObject/ArrayIterator on the source tree— No affected app calls or retired identifiers surfaced. services.yaml configures arrays for root documents, embedded documents and arrays. ViolationsList passes an array to ArrayIterator. - Local check:
./bin/composer validate --strict, ./bin/composer check-platform-reqs --lock, and ./bin/composer install --no-interaction --prefer-dist— All passed in an isolated source archive with the repository Composer helper. Platform validation checked the loaded extension. Direct composer validate --strict --no-interaction, composer check-platform-reqs --lock, and composer install --no-interaction --prefer-dist also passed in the cached Composer image while the helper build was running. - Local check:
docker build --iidfile var/image.id etc/docker/php; docker run --rm --network none with php -r requiring vendor/autoload.php and constructing MongoDB Client and Database— The source runtime image built successfully. PHP reported 8.5.13, ext-mongodb 2.5.9 and library 2.5.2. Client and database construction passed. An equivalent constructor test with Nagadmin's array type map also passed in the Composer image. No database server or query was exercised. - Evidence:
Supplied source CI snapshot for f9e36690925d0a66ad107f24ca2c0305628aea23 and .github/workflows/check.yml— The PHP and frontend jobs report success. The workflow covers PHPStan, PHP and Twig style checks, frontend lint and type checking, and asset/container builds. Those suites were covered by the snapshot and were not duplicated locally. - Local check:
git status --porcelain and git rev-parse HEAD— The working tree is clean and the checked-out branch remains at the recorded target commit.
Assessed source f9e36690925d0a66ad107f24ca2c0305628aea23.
This PR contains the following updates:
2.5.1→2.5.2Release Notes
mongodb/mongo-php-library (mongodb/mongodb)
v2.5.2Compare Source
The PHP team is happy to announce that version 2.5.2 of the MongoDB PHP library is now available.
Release Highlights
A complete list of resolved issues in this release may be found in Jira.
Documentation
Documentation for this library may be found in the PHP Library Manual.
Installation
This library may be installed or upgraded with:
composer require mongodb/mongodb:2.5.2
Installation instructions for the
mongodbextension may be found in the PHP.net documentation.Full Changelog: mongodb/mongo-php-library@2.5.1...2.5.2
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.