Description
We just bumped our JWT version in our project and we are getting Error: Firebase\JWT\JWT::decode(): Argument #3 ($headers) cannot be passed by reference
.
This "fix" does not do the trick for us so I am wondering what php version you are using.
In the official documentation I cannot find anything mentionning this technique (except for this coment).
The exact version of php we are using is the one shipped with the php:8.1-fpm docker image.
What I could fin out tho from the breaking changes of php 7 to php 8 is this :
The compile time fatal error "Only variables can be passed by reference" has been delayed until runtime, and converted into an "Argument cannot be passed by reference" Error exception.
Some "Only variables should be passed by reference" notices have been converted to "Argument cannot be passed by reference" exception.
I don't fully grasp every aspects of the changes they mention but they might be something there.
And I can also be completely in the wrong about this.
Thank you.