Merged
Conversation
* Merge pull request doctrine#2963 from IonBazan/fix-test Fix provideProxiedExprMethods provider * Bump doctrine/.github/.github/workflows/coding-standards.yml (doctrine#2941) Bumps [doctrine/.github/.github/workflows/coding-standards.yml](https://github.com/doctrine/.github) from 12.2.0 to 13.1.0. - [Release notes](https://github.com/doctrine/.github/releases) - [Commits](doctrine/.github@v12.2.0...13.1.0) --- updated-dependencies: - dependency-name: doctrine/.github/.github/workflows/coding-standards.yml dependency-version: 13.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Skip native lazy object initialization for unmapped properties (doctrine#2922) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Ion Bazan <ion.bazan@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jérôme Tamarelle <jerome@tamarelle.net>
…istentCollection` (doctrine#2965) * Deprecate overring the __sleep method of ClassMetadata or PersistentCollection * Test extending the ClassMetadata class * Discard phpstan issues with soft-final
The default implementation of Type::closureToPhp() is incorrect as it forwards the unmodified value. In 3.0, I want to change the default implementation to use the one from the ClosureToPHP trait that calls the type class. Also adding the missing implementation for collection and hash. Any type that does not override the closureToPhp will get a deprecation notice.
GromNaN
commented
Dec 12, 2025
alcaeus
approved these changes
Dec 16, 2025
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.
__sleepmethod ofClassMetadataorPersistentCollection#2965Type::closureToPHP()#2960