Skip to content

Constructor property promotion - part 1 #16087

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

Closed

Conversation

wkania
Copy link
Contributor

@wkania wkania commented Nov 8, 2021

PHP 8 is min. version for the Symfony 6 so let's use Constructor property promotion.

It's part 1, because when last time I edited 60+ files, the PR was waiting to be merged for months :).

@carsonbot carsonbot added this to the 6.0 milestone Nov 8, 2021
@carsonbot
Copy link
Collaborator

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@javiereguiluz
Copy link
Member

@wkania thanks a lot for proposing this change.

We've been discussing about this internally in the Symfony Docs Team. We've decided to not merge this change yet. It's true that Symfony 6 requires PHP 8 and you can do this, but we prefer to not do it yet. This feature is too new and changes code significantly ... and the result isn't pleasant for everybody yet. We need more time until most people start using this notation and get used to it.

So, we're closing without merging for those reasons. Thanks!

@wkania
Copy link
Contributor Author

wkania commented Nov 15, 2021

@javiereguiluz I see. Thx for giving all reasons behind this decision.

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.

3 participants