diff --git a/composer.json b/composer.json index 597c3eb..6609543 100644 --- a/composer.json +++ b/composer.json @@ -24,13 +24,12 @@ "amphp/amp": "dev-master as 2.0" }, "require-dev": { - "amphp/loop": "dev-master", "phpunit/phpunit": "^5", "friendsofphp/php-cs-fixer": "~1.9" }, "autoload": { "psr-4": { - "Amp\\Stream\\": "lib/" + "Amp\\ByteStream\\": "lib/" }, "files": [ "lib/functions.php", @@ -39,7 +38,7 @@ }, "autoload-dev": { "psr-4": { - "Amp\\Stream\\Test\\": "test/" + "Amp\\ByteStream\\Test\\": "test/" } } } diff --git a/lib/Buffer.php b/lib/Buffer.php index a0e0c5f..d4c3652 100644 --- a/lib/Buffer.php +++ b/lib/Buffer.php @@ -1,6 +1,6 @@ buffer = $buffer; diff --git a/lib/ByteStream.php b/lib/ByteStream.php index c317dee..1a0cb46 100644 --- a/lib/ByteStream.php +++ b/lib/ByteStream.php @@ -1,8 +1,8 @@ Resolves with bytes read from the stream. + * @return \Amp\Promise Resolves with bytes read from the stream. */ public function read(int $bytes = null, string $delimiter = null): Promise; /** * @param string $data * - * @return \AsyncInterop\Promise + * @return \Amp\Promise */ public function write(string $data): Promise; /** * @param string $data * - * @return \AsyncInterop\Promise + * @return \Amp\Promise */ public function end(string $data = ''): Promise; diff --git a/lib/ClosedException.php b/lib/ClosedException.php index 62ac520..09fe9bf 100644 --- a/lib/ClosedException.php +++ b/lib/ClosedException.php @@ -1,5 +1,5 @@ writable) { diff --git a/lib/functions.php b/lib/functions.php index 76bd288..5433821 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1,9 +1,8 @@