Skip to content
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

Add support for Symfony 6 #27

Merged
merged 8 commits into from
Jan 3, 2023
Merged

Add support for Symfony 6 #27

merged 8 commits into from
Jan 3, 2023

Conversation

Chris53897
Copy link
Contributor

update travis.yml

Not tested in real life app.

Is is easier for dev to have "symfony/filesystem": "^4.4|^5.0|^6.0", installed and check if it is correct by IDE or static code analyzer.

@Chris53897
Copy link
Contributor Author

@maxbaldanza
Hi. Is there any news on this PR?

@maxbaldanza
Copy link
Contributor

@maxbaldanza Hi. Is there any news on this PR?

Hi Chris,

Sorry just seen this, any chance you can rebase as there's some merge conflicts and I'll take a look?

Appreciate the contribution 👍

@maxbaldanza
Copy link
Contributor

@Chris53897, we have an old Legacy project that currently supports Symfony 3 so we need to keep that at the minute.
We are in the process of updating it but for the time being we need to keep that support to avoid having to maintain two separate versions.
Happy for Symfony 6 to be added though

@Chris53897
Copy link
Contributor Author

I have deleted the file .travis. Merge-Conflict should be gone now.
Composer will handle the legacy version for you. So it still will works.
But of course let me know after you have migrated the legacy project.

@maxbaldanza
Copy link
Contributor

I have deleted the file .travis. Merge-Conflict should be gone now. Composer will handle the legacy version for you. So it still will works. But of course let me know after you have migrated the legacy project.

It will handle it but if there's any updates to make we'd need to make them to both versions which means more maintenance on our part which I want to try avoid.

I'd prefer to keep Symfony 3 until we've migrated and then remove the support at a later date.

.travis.yml Outdated
@@ -1,36 +0,0 @@
language: php
Copy link
Contributor

@maxbaldanza maxbaldanza Nov 14, 2022

Choose a reason for hiding this comment

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

Can you please add Symfony 6 to the versions here please? https://github.com/mybuilder/cronos/blob/master/.github/workflows/test.yml#L12
We're now using github actions for testing rather than travis

Copy link
Contributor Author

@Chris53897 Chris53897 Nov 14, 2022

Choose a reason for hiding this comment

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

Update: sorry i did read this wrong. I will change it

Copy link
Contributor

@maxbaldanza maxbaldanza Nov 14, 2022

Choose a reason for hiding this comment

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

Can you update your branch and add Symfony 6 to the linked github action please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The github actions needs more changes. Only adding 6.0.0 to the matrix will fail.
https://github.com/Chris53897/cronos/actions/runs/3463286751/jobs/5783304065

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah of course Symfony 6 requires PHP8.
If you have time to update the action then that would be good. If not, then take it out for now and I'll update it when I get a chance

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will try to find some time after my vacation. Should not be so hard, i guess.
Something like this.
matrix: include:
https://github.com/Chris53897/KnpMenuBundle/blob/master/.github/workflows/build.yaml

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you, enjoy your holiday 😎
Something like that matrix would work yes 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I have adjusted the ci-tests.
And i changed composer.json to "^3.4|^4.4|^5.4|^6.0", as supported LTS.
Additional i fixed a deprecation message of the ci.

If you want more or other test runs, please let me know or change it to your needs.

composer.json Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
@maxbaldanza maxbaldanza changed the title feat: drop support of symfony < 4.4, add support for symfony 6 feat: Add support for Symfony 6 Nov 14, 2022
@maxbaldanza maxbaldanza changed the title feat: Add support for Symfony 6 Add support for Symfony 6 Nov 14, 2022
feat: allow symfony 3.4
feat: allow symfony 3.4
feat: allow symfony 3.4
@scrutinizer-notifier
Copy link

A new inspection was created.

@scrutinizer-notifier
Copy link

The inspection completed: ****

feat: allow symfony 3.4
@scrutinizer-notifier
Copy link

A new inspection was created.

@scrutinizer-notifier
Copy link

The inspection completed: ****

Copy link
Contributor

@maxbaldanza maxbaldanza left a comment

Choose a reason for hiding this comment

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

Thank you very much for this. Really appreciate the contribution 👍
You'll be happy to know we no longer need to support Symfony 3.4 but I can remove that at a later date or if you want to create a new PR then your very welcome to

@maxbaldanza maxbaldanza merged commit 069e0ae into mybuilder:master Jan 3, 2023
@Chris53897
Copy link
Contributor Author

That are good news.
Symfony 4.4 is no more the current LTS.
https://symfony.com/releases/4.4

Should i support 4.4 in the new PR?

@maxbaldanza
Copy link
Contributor

maxbaldanza commented Jan 3, 2023

That are good news. Symfony 4.4 is no more the current LTS. https://symfony.com/releases/4.4

Should i support 4.4 in the new PR?

It's still getting security fixes until the end of the year so I'd prefer to leave it in.
Happy to drop support for PHP7 though as that's no longer supported 👍

@Chris53897
Copy link
Contributor Author

I will extend my PR and drop support of php 8

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

Successfully merging this pull request may close these issues.

4 participants