From 537d55c8731b5c055b719ac6df236cc11911dba1 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sat, 18 Dec 2021 18:17:25 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20@error=20=E2=86=92=20@throws=20in=20Writa?= =?UTF-8?q?bleStream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WritableStream.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WritableStream.php b/src/WritableStream.php index 72ce58e..68c91bb 100644 --- a/src/WritableStream.php +++ b/src/WritableStream.php @@ -12,8 +12,8 @@ interface WritableStream extends ClosableStream * * @param string $bytes Bytes to write. * - * @error ClosedException If the stream has already been closed. - * @error StreamException If writing to the stream fails. + * @throws ClosedException If the stream has already been closed. + * @throws StreamException If writing to the stream fails. */ public function write(string $bytes): void; @@ -24,8 +24,8 @@ public function write(string $bytes): void; * complete before closing the stream. Socket streams implementing this interface should only close the writable * side of the stream. * - * @error ClosedException If the stream has already been closed. - * @error StreamException If writing to the stream fails. + * @throws ClosedException If the stream has already been closed. + * @throws StreamException If writing to the stream fails. */ public function end(): void;