pusher / docs

The all new Pusher docs, powered by @11ty and @vercel
https://pusher.com/docs
8 stars 15 forks source link

Pusher Beams Docs | PHP Server SDKpage - Generate Token #291

Closed aj-norman closed 11 months ago

aj-norman commented 1 year ago

Hello there, I spotted an issue on https://pusher.com/docs/beams/reference/server-sdk-php/ while generating a token. The generateToken method call returns a string[] not a string literal.

https://github.com/pusher/push-notifications-php/blob/master/src/PushNotifications.php#L187 - lines 202-204 for reference

aj-norman commented 1 year ago

Also noticed the GenerateToken example has the incorrect syntax, should be -> instead of .

benjamin-tang-pusher commented 11 months ago

Corrected, thanks for raising.