Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax final constraints on stage classes #2717

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jan 17, 2025

Q A
Type bug
BC Break no
Fixed issues Related to api-platform/core#6912 (comment)

Summary

Classes that are used for type hint cannot be "hard" final, otherwise they cannot be mocked. Even if I agree that mocking is not the best approach for testing aggregation builders.

@GromNaN GromNaN added the Bug label Jan 17, 2025
@GromNaN GromNaN added this to the 2.9.2 milestone Jan 17, 2025
@GromNaN GromNaN requested a review from alcaeus January 17, 2025 10:09
@GromNaN GromNaN changed the base branch from 2.10.x to 2.9.x January 17, 2025 10:10
@GromNaN GromNaN changed the title Relax final constrain on stage classes Relax final constraints on stage classes Jan 17, 2025
@GromNaN GromNaN merged commit 8f0b370 into doctrine:2.9.x Jan 17, 2025
16 checks passed
@GromNaN GromNaN deleted the unfinalize branch January 17, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants