web-push-libs / web-push-php

Web Push library for PHP
MIT License
1.69k stars 295 forks source link

TypeError, Argument 1 passed to PrivateKey::create() #328

Closed PNixx closed 6 months ago

PNixx commented 3 years ago

NOTE: Please test in a least two browsers (i.e. Chrome and Firefox). This helps with diagnosing problems quicker.

Please confirm the following:

Setup

Please check that you have installed and enabled these PHP extensions :

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