@@ -94,7 +94,7 @@ class ProfilerListener
$profiler = $this->container->get('profiler');
- if (($parent = $this->container->getCurrentScopedStack('request'))) {
+ if ($parent = $this->container->getCurrentScopedStack('request')) {
$profiler->setParent($parent['request']['profiler']->getToken());
}
@@ -314,7 +314,7 @@ class Container implements ContainerInterface
return null;
- return $this->scopeStacks[$name]->current();
+ return $this->scopeStacks[$name]->top();
/**