Change visibility of handleFiberTermination and flushOutgoingMessages to protected (#143)

This commit is contained in:
落月 2025-11-12 04:42:04 +08:00 • committed by GitHub
commit 982706851a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -208,7 +208,7 @@ class StreamableHttpTransport extends BaseTransport implements TransportInterfac
return $this->withCorsHeaders($response);
}
private function handleFiberTermination(): void
protected function handleFiberTermination(): void
{
$finalResult = $this->sessionFiber->getReturn();
@ -227,7 +227,7 @@ class StreamableHttpTransport extends BaseTransport implements TransportInterfac
$this->sessionFiber = null;
}
private function flushOutgoingMessages(?Uuid $sessionId): void
protected function flushOutgoingMessages(?Uuid $sessionId): void
{
$messages = $this->getOutgoingMessages($sessionId);