File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff 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
484484Interfacing with it directly is * not recommended* and considered * advanced usage* .
485485
@@ -492,6 +492,7 @@ $stdio->write('hello');
492492Should 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
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 44
55use React \Stream \WritableStream ;
66
7+ /**
8+ * @deprecated
9+ */
710class Stdout extends WritableStream
811{
912 public function __construct ()
You can’t perform that action at this time.
0 commit comments