Skip to content

Ensure getPayloadData allows null#39

Merged
limingxinleo merged 2 commits into
hyperf:masterfrom
bosunski:patch-1
Aug 4, 2025
Merged

Ensure getPayloadData allows null#39
limingxinleo merged 2 commits into
hyperf:masterfrom
bosunski:patch-1

Conversation

@bosunski

@bosunski bosunski commented Aug 3, 2025

Copy link
Copy Markdown
Contributor

This PR fixes the occasional error when payloadData is null but getPayloadData only allows returning a non null value.

TypeError: Hyperf\Engine\WebSocket\Frame::getPayloadData(): Return value must be of type Psr\Http\Message\StreamInterface null returned

@bosunski bosunski changed the title Ensure getPaypload allows null Ensure getPayloadData allows null Aug 3, 2025
@limingxinleo limingxinleo merged commit 6595d26 into hyperf:master Aug 4, 2025
11 checks passed
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