We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00bed12 commit 0f0a271Copy full SHA for 0f0a271
Cursor.php
@@ -21,10 +21,10 @@ final class Cursor
21
private $output;
22
private $input;
23
24
- public function __construct(OutputInterface $output, $input = STDIN)
+ public function __construct(OutputInterface $output, $input = null)
25
{
26
$this->output = $output;
27
- $this->input = $input;
+ $this->input = $input ?? (\defined('STDIN') ? STDIN : fopen('php://input', 'r+'));
28
}
29
30
public function moveUp(int $lines = 1): self
0 commit comments