Skip to content

Conversation

@robbedg
Copy link
Contributor

@robbedg robbedg commented Feb 1, 2022

This change is necessary to fix an error created by a removed deprecation.

deprecation:
https://symfony.com/blog/new-in-symfony-5-3-session-service-deprecation

@bocharsky-bw
Copy link
Member

I suppose this change will cause problems with lower Symfony versions we want to support, but if you have some ideas - I'm open

@rvanlaak
Copy link
Member

rvanlaak commented Feb 1, 2022

Given that we allow Symfony 6, and tests seem to pass, does this mean master lacks integration test coverage?

@robbedg
Copy link
Contributor Author

robbedg commented Feb 1, 2022

The compatibility with Symfony 4 should be fixed. There are some dependancies (common/extractor/symfony-storage) that still require some Symfony 4/5 packages. For people that already use those packages that could create problems.

Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

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

Awesome! It looks good to me and tests are happy 👍

Thank you for your time on fixing this!

@bocharsky-bw
Copy link
Member

There are some dependancies (common/extractor/symfony-storage) that still require some Symfony 4/5 packages. For people that already use those packages that could create problems.

Do you mean that similar changes should be done upstream in those packages (common/extractor/symfony-storage) as well?

@robbedg
Copy link
Contributor Author

robbedg commented Feb 2, 2022

Thanks! Those upstream packages eventually will need to be compatible with the Symfony 6 packages.

symfony-storage for example has a requirement for "symfony/translation": "^3.4 || ^4.2 || ^5.0" this should be updated to "symfony/translation": "^3.4 || ^4.2 || ^5.0 || ^6.0" for full compatibility with Symfony 6.

For my project this is not needed, I can just use "symfony/translation": "5.4.*" in my Symfony 6 project without issues. But eventually it could create issues because it is recommended to use the same version for all symfony/* packages.

I have not tested any of those packages, so I don't know if just changing composer.json is enough, or if more changes are needed.

@bocharsky-bw
Copy link
Member

I see now! I created related PRs allowing Symfony 6 in those libs too, thanks!

@bocharsky-bw bocharsky-bw merged commit ea84216 into php-translation:master Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants