Skip to content

Split encoder and normalizer to fix Symfony 6.1 compatibility #347

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 3 commits into from
May 30, 2022
Merged

Split encoder and normalizer to fix Symfony 6.1 compatibility #347

merged 3 commits into from
May 30, 2022

Conversation

mdeboer
Copy link
Contributor

@mdeboer mdeboer commented May 29, 2022

Q A
Branch? v3.0
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT

Symfony starting from 6.1 doesn't seem to like when you combine an encoder and a normalizer. This might be a bug in Symfony but the easiest fix is just to separate the two, which is what I did.

@mdeboer
Copy link
Contributor Author

mdeboer commented May 29, 2022

Hang on, I see I need to update the tests, oops.

@mdeboer mdeboer marked this pull request as draft May 29, 2022 11:14
mdeboer added 2 commits May 29, 2022 20:44
Rector fixes


More style fixes
@mdeboer mdeboer marked this pull request as ready for review May 29, 2022 19:03
@mdeboer
Copy link
Contributor Author

mdeboer commented May 29, 2022

Fixed the tests, some checks (still) fail but are outside the scope of this PR and are caused by things not touched by this PR.

@Spomky Spomky merged commit 57327bd into web-token:v3.0 May 30, 2022
@Spomky
Copy link
Member

Spomky commented May 30, 2022

Many thanks @mdeboer
I think this will also fix #349.

@mdeboer
Copy link
Contributor Author

mdeboer commented May 30, 2022

@Spomky Yep, though I encountered other issues later on not related to your package (afaik). When I have time I might dig deeper as the problem lies with Symfony I bet.

For now, this fix won't harm anyone and it seems to fix compatibility with 6.1.

@Spomky
Copy link
Member

Spomky commented May 31, 2022

@mdeboer no worries, the remaining errors are only related to PHPStan. As the level is set to max and this definition evolved with the last versions of PHPStan. I will take time to fix these errors step by step, but there is no obligation for now.
I will tag and split today.

@mdeboer mdeboer deleted the mdeboer/sf-6.1-fix branch May 31, 2022 13:30
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.

2 participants