Skip to content

Commit

Permalink
[Routing] correctly initialize condition as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Nov 3, 2014
1 parent 1bba799 commit ffe863c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Routing/Route.php
Expand Up @@ -64,7 +64,7 @@ class Route implements \Serializable
/**
* @var string
*/
private $condition;
private $condition = '';

/**
* Constructor.
Expand All @@ -84,7 +84,7 @@ class Route implements \Serializable
*
* @api
*/
public function __construct($path, array $defaults = array(), array $requirements = array(), array $options = array(), $host = '', $schemes = array(), $methods = array(), $condition = null)
public function __construct($path, array $defaults = array(), array $requirements = array(), array $options = array(), $host = '', $schemes = array(), $methods = array(), $condition = '')
{
$this->setPath($path);
$this->setDefaults($defaults);
Expand Down

0 comments on commit ffe863c

Please sign in to comment.