Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 10, 2022
Merged

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

merged 1 commit into from
May 10, 2022

Conversation

lucasvscn
Copy link
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
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