Starting version 6.0 the package firebase/php-jwt changed the signature of \Firebase\JWT\JWT::decode method introducing a BC.
This is the old way that is used in this package
JWT::decode($token, $publicKey, $this->allowedAlgos);
This is the new way used in the firebase/php-jwt
JWT::decode($jwt, new Key($key, 'HS256'));
Here is a full list of changes including this one.
Starting version 6.0 the package firebase/php-jwt changed the signature of
\Firebase\JWT\JWT::decodemethod introducing a BC.This is the old way that is used in this package
JWT::decode($token, $publicKey, $this->allowedAlgos);This is the new way used in the firebase/php-jwt
JWT::decode($jwt, new Key($key, 'HS256'));Here is a full list of changes including this one.