pusher / pusher-http-php

PHP library for interacting with the Pusher Channels HTTP API
https://pusher.com/docs/server_api_guide
1.41k stars 307 forks source link

get_object_vars() error on /src/Pusher.php:459 #322

Closed ahmadharminto closed 2 years ago

ahmadharminto commented 2 years ago

Hi, kindly do check this issue

My env :

Error message : local.ERROR: get_object_vars(): Argument #1 ($object) must be of type object, array given {"exception":"[object] (TypeError(code: 0): get_object_vars(): Argument #1 ($object) must be of type object, array given at /<my-project-path>/vendor/pusher/pusher-php-server/src/Pusher.php:459)

Thank you

benjamin-tang-pusher commented 2 years ago

Does this error occur when you call broadcast(new event(...))->toOthers();?

Attia-Ahmed commented 2 years ago

same issue

benjamin-tang-pusher commented 2 years ago

Ahmad, what do you think of Attia's PR? Does it solve your issue?

ahmadharminto commented 2 years ago

@benjamin-tang-pusher I think Attia's PR will fix the issue. Thank you.