Skip to content

Remove non-final readonly classes #60148

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

Merged
merged 1 commit into from
Apr 6, 2025

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Apr 4, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

Those are just annoying from a maintainer PoV, without providing us any extra maintenance flexibility (quite the contrary).

@nicolas-grekas nicolas-grekas requested a review from chalasr as a code owner April 4, 2025 12:21
@carsonbot carsonbot added this to the 7.3 milestone Apr 4, 2025
/**
* Configures a class or a property to map to.
*
* @internal
*
* @author Antoine Bluchet <soyuka@gmail.com>
*/
readonly class Mapping
final class Mapping extends Map
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to introduce this type inheritance?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the class is internal so we can undo it at will. For now, it prevents duplicate definitions/docblocks IMHO

@fabpot fabpot merged commit 46bd34c into symfony:7.3 Apr 6, 2025
9 of 11 checks passed
@nicolas-grekas nicolas-grekas deleted the non-final-reaodnly branch April 10, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants