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

Fixed type error in connection message handler #144

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

boris-glumpler
Copy link
Contributor

@boris-glumpler boris-glumpler commented Apr 12, 2024

I installed and setup Reverb (Laravel 11, PHP 8.3) and have been getting the same type error from the beginning when running the server:

Laravel\Reverb\Protocols\Pusher\Http\Controllers\PusherController::Laravel\Reverb\Protocols\Pusher\Http\Controllers\{closure}(): Argument #1 ($message) must be of type string, Ratchet\RFC6455\Messaging\Message given, called in .../app/vendor/ratchet/rfc6455/src/Messaging/MessageBuffer.php on line 254

Not sure why nobody else seems to be getting this error, but maybe something to do with strict typing as Ratchet\RFC6455\Messaging\Message is a stringable object. Anyways, just coercing $message to a string resolved the issue for me and I was getting successful pings after that.

All tests are still passing.

@taylorotwell taylorotwell merged commit 0b337be into laravel:main Apr 12, 2024
9 checks passed
@boris-glumpler boris-glumpler deleted the type-error branch April 12, 2024 11:56
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.

None yet

3 participants