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

Fix Backward Compatibility for servers running Pusher < 5.0.0 #324

Closed Attia-Ahmed closed 2 years ago

Attia-Ahmed commented 2 years ago

Description

Closes #322, calling get_object_vars($result->channels) function in Pusher.php on response of old versions of pusher servers <v5.0.0 lead to TypeError Exception, as an array is passed instead of object.

CHANGELOG

Delia-SimpleKYC commented 1 year ago

@Attia-Ahmed could this fix be included in branch "7.0.2" ? I need this version to be working because of this issue: https://github.com/beyondcode/laravel-websockets/issues/1041

Thanks

Delia-SimpleKYC commented 1 year ago

@Stejsi I have noticed that you have placed a thumbs-up on my request :) Could you tell me when the update will be done? We need this to be solved as soon as possible, otherwise we will have to configure another server..... Thanks in advance!!