[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
1 changed files with 2 additions and 0 deletions

View File

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