Skip to content

[9.x] Fix type mismatch on Pusher::validate_channels() - #42340

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
lucasvscn:fix-pusher-broadcast-validate-channels
May 10, 2022
Merged

[9.x] Fix type mismatch on Pusher::validate_channels()#42340
taylorotwell merged 1 commit into
laravel:9.xfrom
lucasvscn:fix-pusher-broadcast-validate-channels

Conversation

@lucasvscn

Copy link
Copy Markdown
Contributor
  • Laravel 9.12.0
  • Pusher 7.0

This PR fixes an issue with the most recent version of Pusher package.

After PR #42287, the argument passed on to Pusher\Pusher::trigger() was changed to a Collection. But since version 7.0 Pusher requires an argument of type array down the stack.

Trying to broadcast an event using Pusher 7.0 on Laravel 9.12.0 raises the following error:

Pusher\\Pusher::validate_channels(): Argument #1 ($channels) must be of type array, Illuminate\\Support\\Collection given, called in /vendor/pusher/pusher-php-server/src/Pusher.php on line 341

@taylorotwell

Copy link
Copy Markdown
Member

Released 9.12.1

@GrahamCampbell GrahamCampbell changed the title Fix type mismatch on Pusher::validate_channels() [9.x] Fix type mismatch on Pusher::validate_channels() May 10, 2022
@lucasvscn
lucasvscn deleted the fix-pusher-broadcast-validate-channels branch May 10, 2022 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants