[Console] fixed unitialized properties (closes #5935)

This commit is contained in:
Fabien Potencier 2012-12-30 21:29:27 +01:00
parent 352eba385c
commit 2fc41a1ac8

View File

@ -37,6 +37,8 @@ abstract class Input implements InputInterface
public function __construct(InputDefinition $definition = null) public function __construct(InputDefinition $definition = null)
{ {
if (null === $definition) { if (null === $definition) {
$this->arguments = array();
$this->options = array();
$this->definition = new InputDefinition(); $this->definition = new InputDefinition();
} else { } else {
$this->bind($definition); $this->bind($definition);