Skip to content

Update PHP to 8.0 #1266

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
wants to merge 11 commits into from
Closed

Update PHP to 8.0 #1266

wants to merge 11 commits into from

Conversation

igornast
Copy link

@igornast igornast commented Oct 8, 2021

Hi,

As PHP 8.0 was release almost a year ago, I thought that it would be nice to start using it's features for example attributes. Before I would be able to prepare attributes PR for it, demo's composer should be updated to support php:^8.0.

Thanks for feedback and thoughts

@@ -10,11 +10,11 @@
"symfony/polyfill-php73": "*"
},
"require": {
"php": "^7.3 || ^8.0",
"php": "^8.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd keep ^7.3 support as well, why not?

Copy link
Member

Choose a reason for hiding this comment

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

Well, the PR says it wants to migrate the demo to use attributes, meaning that this bump is the main goal of the PR

Copy link
Author

Choose a reason for hiding this comment

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

Exactly. First thing to do is to update php, second PR that I want to prepare will be related to attributes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, probably it makes sense to do that attributes change in this PR? It would be more obvious why we need that PHP upgrade. Otherwise, I don't like dropping ^7.3 support just for something that will happen in the future

Copy link
Author

Choose a reason for hiding this comment

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

For me no problem, just let me know if that’s your final decision. 😄

@javiereguiluz
Copy link
Member

@igornast thanks for your contribution!

However, the Symfony Demo project aligns strictly to the current stable Symfony version. That means that we can only make these changes when Symfony 6.0 is released (in just a few weeks!) because it requires PHP 8.0.2.

Please also note that there's a previous PR (#1169) similar to this one. In any case, don't close your PR yet. Let's keep in "on hold" and we'll decide which one to merge when Symfony 6.0 is released. Thanks!

@javiereguiluz
Copy link
Member

Hi again @igornast! After checking this PR and the older PR #1169, I've decided to merge the older one because it makes more changes to more files.

In any case, after it's merged, we can do new PRs to update other pending things to PHP 8. Thanks for understanding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants