Lock rector version to 2.5.9 - #1973
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Freezes the Rector dev dependency to a specific version to avoid unexpected refactor proposals from new Rector releases, and applies a set of Rector-driven refactors across runtime and test code.
Changes:
- Pin
rector/rectorto2.6.4incomposer.json. - Replace various
isset/=== nullinitialization blocks with null coalescing assignment (??=) insrc/andtests/.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
composer.json |
Pins rector/rector to 2.6.4 to stabilize tooling output. |
src/Client.php |
Uses ??= to inherit typeMap options more concisely. |
src/Collection.php |
Simplifies defaulting of $toDatabaseName and writeConcern inheritance via ??=. |
src/Database.php |
Simplifies defaulting of typeMap, encryptedFields, and $toDatabaseName via ??=. |
src/Operation/BulkWrite.php |
Simplifies defaulting of optional operation arguments ($args[...]) via ??=. |
tests/FunctionalTestCase.php |
Simplifies defaulting of optional $databaseName parameters via ??=. |
tests/Operation/BulkWriteFunctionalTest.php |
Simplifies _id placeholder replacement logic via ??=. |
tests/Operation/InsertManyFunctionalTest.php |
Simplifies _id placeholder replacement logic via ??=. |
tests/Operation/InsertOneFunctionalTest.php |
Simplifies _id placeholder replacement logic via ??=. |
tests/UnifiedSpecTests/EventCollector.php |
Simplifies lazy initialization of the class-to-event-name map via ??=. |
tests/UnifiedSpecTests/UnifiedTestRunner.php |
Simplifies lazy initialization of cached requirement-check args via ??=. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
paulinevos
approved these changes
Aug 27, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Locks the Rector version to prevent unexpected changes being proposed when new releases are available. Updates will only be made to the development branch.