edamov / pushok

PHP client for Apple Push Notification Service (APNs) - Send push notifications to iOS using the new APNs HTTP/2 protocol with token-based (JWT with p8 private key)
MIT License
378 stars 121 forks source link

Error: Cannot use FG\ASN1\Object as Object because 'Object' is a special class name #122

Closed baden32 closed 3 years ago

baden32 commented 3 years ago

I just installed pushok today using composer and unfortnately I get this "famous" error. As far as I can see in the doc/post, it should have been solved with new version of package spomky-labs/jose (7+) but I cannot install a new version.

The dependencies when I installer pushok is still "spomky-labs/jose": "^6.1.1"

and during installation composer require edamov/pushok, I got the following warning:

Package spomky-labs/jose is abandoned, you should avoid using it. Use web-token/jwt-framework instead.

As I'm working with PHP 7.3.x, am I doing something wrong here?

Is there a plan to change pushok to use web-token/jwt-framework?

Thanks in advance for your help. Regards Joe

baden32 commented 3 years ago

Actually my composer did not install the latest version, 0.2.0 was installed ;-( I just removed everything and tried to force 0.2.1 but it seems to have problem with PHP version/librairie. So forget my initial message, issu can be closed.