Fatal error: Uncaught TypeError: Argument 1 passed to Jose\Component\Signature\JWSBuilder::construct() must be an instance of Jose\Component\Core\Converter\JsonConverter or null, instance of Jose\Component\Core\AlgorithmManager given, called in E:\websites\test\push\vendor\minishlink\web-push\src\VAPID.php on line 136 and defined in E:\websites\test\push\vendor\web-token\jwt-signature\JWSBuilder.php:58 Stack trace: #0 E:\websites\test\push\vendor\minishlink\web-push\src\VAPID.php(136): Jose\Component\Signature\JWSBuilder->construct(Object(Jose\Component\Core\AlgorithmManager)) #1 E:\websites\test\push\vendor\minishlink\web-push\src\WebPush.php(404): Minishlink\WebPush\VAPID::getVapidHeaders('https://fcm.goo...', 'mailto:musaffar...', '\x04\x11p\xB7\x89uf\xF2(\nA\xF6\n\x9FC...', '\x95im\xBDAk\x8D\xAE\x15\x9E\x01\xEE.\e\x83...', 'aesgcm') #2 E:\websites\test\push\vendor\minishlink\web-push\src\WebPush.php(273): Minishlink\WebPush\WebPush->getVAPIDHeaders('https://fcm.goo...', 'aesgcm', Array) #3 E:\websites\test\push\ve in E:\websites\test\push\vendor\web-token\jwt-signature\JWSBuilder.php on line 58
Getting the following error:
Fatal error: Uncaught TypeError: Argument 1 passed to Jose\Component\Signature\JWSBuilder::construct() must be an instance of Jose\Component\Core\Converter\JsonConverter or null, instance of Jose\Component\Core\AlgorithmManager given, called in E:\websites\test\push\vendor\minishlink\web-push\src\VAPID.php on line 136 and defined in E:\websites\test\push\vendor\web-token\jwt-signature\JWSBuilder.php:58 Stack trace: #0 E:\websites\test\push\vendor\minishlink\web-push\src\VAPID.php(136): Jose\Component\Signature\JWSBuilder->construct(Object(Jose\Component\Core\AlgorithmManager)) #1 E:\websites\test\push\vendor\minishlink\web-push\src\WebPush.php(404): Minishlink\WebPush\VAPID::getVapidHeaders('https://fcm.goo...', 'mailto:musaffar...', '\x04\x11p\xB7\x89uf\xF2(\nA\xF6\n\x9FC...', '\x95im\xBDAk\x8D\xAE\x15\x9E\x01\xEE.\e\x83...', 'aesgcm') #2 E:\websites\test\push\vendor\minishlink\web-push\src\WebPush.php(273): Minishlink\WebPush\WebPush->getVAPIDHeaders('https://fcm.goo...', 'aesgcm', Array) #3 E:\websites\test\push\ve in E:\websites\test\push\vendor\web-token\jwt-signature\JWSBuilder.php on line 58
With the following code:
Any guidance would be appreciated here.