symfony 5 compatibility fix #236
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes a compatibility issue in the Bundle component.
The issue is the following:
web-token/jwt-bundlepackage fails to install in a symfony 5 environment (tried with 5.0.2)Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface::collectwas changed in Symfony 5.0.composer output in sf 5.0.2:
I tested the changes by installing the jwt-framework in symfony 4.2, 4.3, 4.4 and 5.0
Note: changing only the
JoseCollector::collectsignature would be enough for the fix, as that's the only one actually extending symfony's DataCollector. But I believe changing the JoseFramework's Collector interface accordingly makes it more consistent. Although there is a chance that someone else implements JoseFramework's Collector interface outside of this project, and this change could brake that implementation. I can revert those possible breaking changes if you want.