Skip to content

Commit

Permalink
Fix @error@throws in WritableStream
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Dec 18, 2021
1 parent 80f6bbf commit 537d55c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/WritableStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit 537d55c

Please sign in to comment.