Skip to content

Relax final constraints on stage classes#2717

Merged
GromNaN merged 1 commit intodoctrine:2.9.xfrom
GromNaN:unfinalize
Jan 17, 2025
Merged

Relax final constraints on stage classes#2717
GromNaN merged 1 commit intodoctrine:2.9.xfrom
GromNaN:unfinalize

Conversation

@GromNaN
Copy link
Copy Markdown
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
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