[FrameworkBundle] Router skip defaults resolution for arrays
This commit is contained in:
parent
3d99374014
commit
208e134945
@ -114,7 +114,7 @@ class Router extends BaseRouter implements WarmableInterface
|
||||
{
|
||||
$container = $this->container;
|
||||
|
||||
if (null === $value || false === $value || true === $value || is_object($value)) {
|
||||
if (null === $value || false === $value || true === $value || is_object($value) || is_array($value)) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
@ -163,7 +163,7 @@ class RoutingTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function getNonStringValues()
|
||||
{
|
||||
return array(array(null), array(false), array(true), array(new \stdClass()), array(array('foo', 'bar')));
|
||||
return array(array(null), array(false), array(true), array(new \stdClass()), array(array('foo', 'bar')), array(array(array())));
|
||||
}
|
||||
|
||||
private function getServiceContainer(RouteCollection $routes)
|
||||
|
Reference in New Issue
Block a user