Skip to content

Commit 186b4d1

Browse files
author
a.dmitryuk
committed
Symfony 6.2 - remove extra call to check hasSession
1 parent 8dfe8ef commit 186b4d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/ProfilerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function onKernelResponse(ResponseEvent $event)
9797
return;
9898
}
9999

100-
$session = $request->hasPreviousSession() && $request->hasSession() ? $request->getSession() : null;
100+
$session = $request->hasPreviousSession() ? $request->getSession() : null;
101101

102102
if ($session instanceof Session) {
103103
$usageIndexValue = $usageIndexReference = &$session->getUsageIndex();

0 commit comments

Comments
 (0)