web-push-php
web-push-php copied to clipboard
TypeError, Argument 1 passed to PrivateKey::create()
NOTE: Please test in a least two browsers (i.e. Chrome and Firefox). This helps with diagnosing problems quicker.
Please confirm the following:
- [x] I have read the README entirely
- [x] I have verified in the issues that my problem hasn't already been resolved
Setup
- Operating System: Linux
- PHP Version: 7.4
- web-push-php Version: 6.0.5
- web-token/jwt-util-ecc: v2.2.10
Please check that you have installed and enabled these PHP extensions :
- [x] gmp
- [x] mbstring
- [x] curl
- [x] openssl
Problem
TypeError, Argument 1 passed to Jose\Component\Core\Util\Ecc\PrivateKey::create() must be an instance of Brick\Math\BigInteger, instance of GMP given, called in /home/shared/vendor/minishlink/web-push/src/Encryption.php on line 392 /home/shared/vendor/web-token/jwt-util-ecc/PrivateKey.php:57