Thanks to visit codestin.com Credit goes to github.com
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 5de548b commit aff1ffaCopy full SHA for aff1ffa
src/Symfony/Component/Console/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