From ffe863c5439fba49fe078a307397482579990ce6 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Mon, 3 Nov 2014 21:24:10 +0100 Subject: [PATCH] [Routing] correctly initialize condition as string --- src/Symfony/Component/Routing/Route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Routing/Route.php b/src/Symfony/Component/Routing/Route.php index 28966945d6..32b31c9a3b 100644 --- a/src/Symfony/Component/Routing/Route.php +++ b/src/Symfony/Component/Routing/Route.php @@ -64,7 +64,7 @@ class Route implements \Serializable /** * @var string */ - private $condition; + private $condition = ''; /** * Constructor. @@ -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);