resource|null $input:
public function __construct(OutputInterface $output, $input = null) { $this->input = $input ?? (\defined('STDIN') ? \STDIN : fopen('php://input', 'r+')); }