Skip to content

Add BC promise rules for constructors #20307

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
Oct 16, 2024

Conversation

alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Oct 8, 2024

@carsonbot carsonbot added this to the 5.4 milestone Oct 8, 2024
Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

Thanks! We should move this new rows at the end of the **Constructors** section I think, to be consistent with the methods section.

Remove argument No :ref:`[3] <note-3>`
Add default value to an argument Yes
Remove default value of an argument No
Add type hint to an argument No
Copy link
Member

Choose a reason for hiding this comment

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

we should probably update the whole table (maybe in a separate PR) to stop talking about type hint. Those are not hints at all. the right term for that is type, or maybe native type if we want to compare it to phpdoc-declared types.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, I'll have a loot at it once this one is merged

@javiereguiluz
Copy link
Member

Merged! Thanks Alex.

If further tweaks are needed, we can do that in future PRs. Thanks.

@javiereguiluz javiereguiluz merged commit 55f7308 into symfony:5.4 Oct 16, 2024
3 checks passed
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.

6 participants