Skip to content

Commit

Permalink
[Console] fixed unitialized properties (closes #5935)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 30, 2012
1 parent 352eba3 commit 2fc41a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Component/Console/Input/Input.php
Expand Up @@ -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);
Expand Down

0 comments on commit 2fc41a1

Please sign in to comment.