Skip to content

Commit fdd9e72

Browse files
committed
Deprecated dedicated Stdout class, use Stdio::write() instead
1 parent a3a0c8b commit fdd9e72

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ $readline->setAutocomplete(null);
479479

480480
#### Stdout
481481

482-
The `Stdout` represents a `WritableStream` and is responsible for handling console output.
482+
[Deprecated] The `Stdout` represents a `WritableStream` and is responsible for handling console output.
483483

484484
Interfacing with it directly is *not recommended* and considered *advanced usage*.
485485

@@ -492,6 +492,7 @@ $stdio->write('hello');
492492
Should you need to interface with the `Stdout`, you can access the current instance through the [`Stdio`](#stdio):
493493

494494
```php
495+
// deprecated
495496
$stdout = $stdio->getOutput();
496497
```
497498

src/Stdio.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ public function getInput()
222222
return $this->input;
223223
}
224224

225+
/**
226+
* @deprecated
227+
*/
225228
public function getOutput()
226229
{
227230
return $this->output;

src/Stdout.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use React\Stream\WritableStream;
66

7+
/**
8+
* @deprecated
9+
*/
710
class Stdout extends WritableStream
811
{
912
public function __construct()

0 commit comments

Comments
 (0)