-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Fix compatibility with endroid/qr-code 4 #84
Fix compatibility with endroid/qr-code 4 #84
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it works for you then that is great (I don't know endroid enough to test), my only critique would be the unnecessary else
before return
replaced.
Yeah, that's why I included the test script in the OP to make it easy to verify, along with the generated images from running it. I have used various options to confirm they’ve work as well (setting different colors, image height / width, etc.). |
Thanks for that. I'd like the php 8.1 thing to be resolved and then ship a release to fix both unless it takes too long to figure out and you need this fix shipping sooner 😅 I wonder if it is also worth creating another github workflow or two to specifically test against both versions of Endroid, and Bacon for that matter. |
What is done in other projects I work on is to have a workflow that installs the latest dependencies that work (what's currently happening here) and the lowest dependencies and makes sure the whole range works. A similar thing could be done here, sure. Though need to also write a test suite for endroid and bacon at the same time. |
At this point, ideally a maintainer would be able to add the test I made to #83 and then merge it in relatively quickly, the pieces are all there. |
@MasterOdin it would be good to get your feedback on #86 as it would be a good way of testing both version 3 and 4 of endroid separately |
Is there something I can do? I'm a bit unclear as what needs to still be done. |
@MasterOdin would you be able to rebase your branch (or merge master into it) and then you can set up a test for both version 3 and 4 as separate workflows? |
@willpower232 I've rebased the PR on top of the latest master, as well as added a minimal test suite that tests using the provider "works" across a range of PHP / dependency versions. |
thank you very much, I'll go over it shortly and get a release out |
Closes #82
This PR adds compatibility with
endroid/qr-code:^4
while maintaining support for older versions.Test code:
logo.jpeg
:endroid/qr-code:^3
results:endroid/qr-code:^4
result: