Closed alexandrewavelet closed 9 months ago
Yes, we've also run into issues with the various versions of JWT. I'm planning to put together a major release of this package. As a part of that, I'll make sure change the requirements to "firebase/php-jwt": "^6.6"
.
This will be fixed in v6.0: https://github.com/packbackbooks/lti-1-3-php-library/pull/127
Hello,
The version constraint for the firebase/php-jwt package is incorrect starting from
v5.3.4
and onwards:"firebase/php-jwt": "^5.5|^6.0"
should be"firebase/php-jwt": "^6.6"
Because starting from
v5.3.4
anstdClass
is used as third param ofJWT::decode()
: https://github.com/packbackbooks/lti-1-3-php-library/blob/v5.3.4/src/LtiMessageLaunch.php#L454-L455In
firebase/php-jwt
the third argument is an stdClass as ofv6.6.0
(and is either an array inv5.5.X
, or does not exists fromv6.0.0 to v6.5.0
: https://github.com/firebase/php-jwt/blob/v6.6.0/src/JWT.phpCurrently, since the package allows
firebase/php-jwt v5.X
, we get this error if we upgrade the package without upgradingphp-jwt
tov6.6.0
at the same time:Let me know if you need more details! I'm not sure on how to proceed from here, but I can do a PR for the change if you like.
Thanks!