diff options
Diffstat (limited to 'vendor/vimeo/psalm/src/Psalm/Internal/LanguageServer/ProtocolStreamWriter.php')
-rw-r--r-- | vendor/vimeo/psalm/src/Psalm/Internal/LanguageServer/ProtocolStreamWriter.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vendor/vimeo/psalm/src/Psalm/Internal/LanguageServer/ProtocolStreamWriter.php b/vendor/vimeo/psalm/src/Psalm/Internal/LanguageServer/ProtocolStreamWriter.php deleted file mode 100644 index cedd7c7..0000000 --- a/vendor/vimeo/psalm/src/Psalm/Internal/LanguageServer/ProtocolStreamWriter.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace Psalm\Internal\LanguageServer; - -use Amp\ByteStream\ResourceOutputStream; -use Amp\Promise; - -/** - * @internal - */ -class ProtocolStreamWriter implements ProtocolWriter -{ - /** - * @var ResourceOutputStream - */ - private $output; - - /** - * @param resource $output - */ - public function __construct($output) - { - $this->output = new ResourceOutputStream($output); - } - - /** - * {@inheritdoc} - */ - public function write(Message $msg): Promise - { - return $this->output->write((string)$msg); - } -} |