jwt: Unable to use ECDSA signer on PHP 7.2 (request to update mdanter/ecc dependency)

To use ECDSA signer it is required to install mdanter/ecc version ~0.3.1. But this extension requires php-mcrypt which was deprecated in PHP 7.1 and was deleted in PHP 7.2. Latest mdanter/ecc (0.5.0) doesn’t depend on mcrypt but however it is incompatible and throws an exception: Type error: Argument 1 passed to Lcobucci\JWT\Signer\Ecdsa\KeyParser::__construct() must be an instance of Mdanter\Ecc\Math\MathAdapterInterface, instance of Mdanter\Ecc\Math\GmpMath given, called in /vendor/lcobucci/jwt/src/Signer/Ecdsa.php on line 50

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

@shakura at the moment PHP 7.1+ is not supported by the stable releases we have, v4-alpha1 is usable and fully tested but the interface is not 100% stable.

I’ll be addressing this issue with the v3.3 ASAP.

no problem. thanks for the quick reply.