Skip to content

Commit 3e8f888

Browse files
committed
Use FilterStream in Stdout and Stderr classes
1 parent 6a7f848 commit 3e8f888

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Streams/Stderr.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
*
1515
* @package cli
1616
*/
17-
class Stderr extends Stream
17+
class Stderr extends \php_user_filter
1818
{
19+
use FilterStream;
20+
1921
public static function init() : void
2022
{
2123
\stream_filter_register(static::class, static::class);

src/Streams/Stdout.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
*
1515
* @package cli
1616
*/
17-
class Stdout extends Stream
17+
class Stdout extends \php_user_filter
1818
{
19+
use FilterStream;
20+
1921
public static function init() : void
2022
{
2123
\stream_filter_register(static::class, static::class);

0 commit comments

Comments
 (0)