-
-
Notifications
You must be signed in to change notification settings - Fork 84
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 QR-Code options method #250
Conversation
@sprain, what's the point of automatically executing tests in the workflow if they can't succeed? This test only works in a hardened environment”. Does that help? |
I think the test fails because "prefer-lowest" will go for the lowest allowed endroid-version, which is The fix would be to remove |
I think we should drop EOL PHP 8.0 permitting to drop @sprain ok for you ? |
@@ -2,14 +2,14 @@ | |||
|
|||
namespace Sprain\SwissQrBill\PaymentPart\Output\TcPdfOutput; | |||
|
|||
use Endroid\QrCode\Writer\SvgWriter; |
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.
I am not keen on exposing Endroid functionality outside of our own QrCode
class. The goal was to keep all qr code functionality encased there.
I would prefer if we could add the additional option within QrCode
, with a more specific method name – maybe as simple as $qrCode->optimizeForTcPdfOutput()
, which then adds the required option.
Thanks for the PR!
I remember the backlash when I dropped support for PHP 8.0 still counts for 20% of all installs of this library, and even 25% for v4 of this library. Therefore, the way to go would be to add parallel support for both versions, before dropping the older one. We already do that in the constructor of |
ok, it means that |
That's not what I meant :) This still couples But I can take over from here, no worries. |
@sprain Tests in There seems to be a significant issue with one of the dependencies. So once the tests are fixed, please also keep an eye on the runtime. |
Replaced by #252 |
Details #249