Skip to content

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Aug 21, 2025

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

Let's remove more needless boilerplate.

These deprecations shouldn't affect anyone since I don't expected other code than ours to read these attributes.

Note that I don't make properties on Route readonly because of the existing setters.
(Note also that having readonly on the other attribute properties isn't useful in pragmatic terms, that's mostly pedantic ;) )

…tters in favor of public properties on attributes
@carsonbot carsonbot added this to the 7.4 milestone Aug 21, 2025
@nicolas-grekas nicolas-grekas merged commit ed38673 into symfony:7.4 Aug 21, 2025
12 checks passed
@nicolas-grekas nicolas-grekas deleted the r-deprec-attr-get-set branch August 21, 2025 14:02
nicolas-grekas added a commit that referenced this pull request Aug 21, 2025
…tters and setters in favor of public properties on attributes (nicolas-grekas)

This PR was merged into the 8.0 branch.

Discussion
----------

[Routing][Serializer] Remove annotation aliases and getters and setters in favor of public properties on attributes

| Q             | A
| ------------- | ---
| Branch?       | 8.0
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Issues        | -
| License       | MIT

Follows #61487

Commits
-------

153ae98 [Routing][Serializer] Remove annotation aliases and getters and setters in favor of public properties on attributes
Kocal added a commit to symfony/ux that referenced this pull request Aug 22, 2025
This PR was merged into the 2.x branch.

Discussion
----------

 Fix highest-deps job

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Docs?         | no <!-- required for new features -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - For new features, provide some code snippets to help understand usage.
 - Features and deprecations must be submitted against branch main.
 - Update/add documentation as required (we can help!)
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility (see https://symfony.com/bc).
-->

Related to symfony/symfony#61488 & symfony/symfony#61487

Commits
-------

0d51a72 Fix highest-deps job
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.

2 participants