Skip to content

Update encode method to use type hinting for string|Response object#1150

Open
joanhey wants to merge 6 commits intowalkor:masterfrom
joanhey:type-hint
Open

Update encode method to use type hinting for string|Response object#1150
joanhey wants to merge 6 commits intowalkor:masterfrom
joanhey:type-hint

Conversation

@joanhey
Copy link
Copy Markdown
Contributor

@joanhey joanhey commented Apr 4, 2026

Available from PHP 8.0.

EDIT: string|Response|ServerSentEvents

PD: later we need to check the TcpConnection::send() why the $sendBuffer receive null.
For now use a fast fix $sendBuffer ??= '';

@joanhey joanhey marked this pull request as draft April 4, 2026 13:03
@joanhey joanhey marked this pull request as ready for review April 4, 2026 18:24
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.

1 participant