From fd8fd3df477ff78b194bf5a8e427e1fa14ab1265 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 28 Jun 2018 10:10:40 +0200 Subject: [PATCH] [HttpFoundation] fix merge --- .../HttpKernel/EventListener/AbstractSessionListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php b/src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php index 2636c65ff6..bc02fe0a83 100644 --- a/src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php +++ b/src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php @@ -62,7 +62,7 @@ abstract class AbstractSessionListener implements EventSubscriberInterface } $session = $session ?? ($this->container && $this->container->has('initialized_session') ? $this->container->get('initialized_session') : null); - $this->sessionUsageStack[] = $session instanceof Session ? $session->getUsageIndex() : null; + $this->sessionUsageStack[] = $session instanceof Session ? $session->getUsageIndex() : 0; } public function onKernelResponse(FilterResponseEvent $event)