refactor!: clean up stdio interface
with an interface no less!
This commit is contained in:
@@ -4,7 +4,15 @@ declare(strict_types=1);
|
||||
|
||||
namespace Nih\CommandBuilder;
|
||||
|
||||
final class ChildStderr
|
||||
use Override;
|
||||
|
||||
final class ChildStderr implements StdioInterface
|
||||
{
|
||||
use StreamReadable;
|
||||
|
||||
#[Override]
|
||||
public function getDescriptionSpec(int $fd): mixed
|
||||
{
|
||||
return $this->stream;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user