Skip to content

Commit 2e96b08

Browse files
committed
updating exception message to be more concise
1 parent d9beaa5 commit 2e96b08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct($stream, LoopInterface $loop)
2020
{
2121
$this->stream = $stream;
2222
if (!is_resource($this->stream) || get_resource_type($this->stream) !== "stream") {
23-
throw new InvalidArgumentException('Invalid stream resource passed as the first argument to '. __METHOD__);
23+
throw new InvalidArgumentException('First parameter must be a valid stream resource');
2424
}
2525

2626
stream_set_blocking($this->stream, 0);

0 commit comments

Comments
 (0)