Closed PhoenixBWS closed 2 years ago
Hi @PhoenixBWS I am running it under PHP 8.1 and am not getting any errors. Also, all checks under PHP 8.x are successful, see https://github.com/endroid/qr-code/actions/runs/1660408990. What version do you have installed and what is the error message?
@endroid It throws the following error:
Fatal error: Uncaught RuntimeException: Index invalid or out of range in
In composer.json, I see the version listed there is:
"endroid/qr-code": "^4.4"
In composer.lock I found the actual version no. i.e. 4.4.7
And my PHP Version is 8.1.1
And what bacon qr code library version do you have in your lock file? As it appears to be some issue in that code.
Yes, it looks like that. By the way, the Bacon QR Code library version looks like below in my composer.lock
"name": "bacon/bacon-qr-code", "version": "2.0.4"
I also found an issue there but that was not resolved yet.
Ah that must be it then. Hope it will be resolved soon. Thank you!
Can you please tell me which bacon/bacon-qr-code
version is working with php8.1 so that we can use your QR Code library?
@PhoenixBWS As I mentioned all my tests are running successfully under PHP 8.x and with bacon qr code lib 2.0.4 so I think the error only occurs for specific use cases which are not covered by the tests. If you can provide a failing test case (or complete code fragment that results in the issue) I can see if I can reproduce the issue and we can use that information to help the author of the library which has the bug to reproduce and solve it.
When run on PHP 8.0 or PHP 8.1, it causes a Fatal Error. Please add support for PHP 8.1.