Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8fa136

Browse files
Hot fix
1 parent 8bc6df3 commit f8fa136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/EventListener/ProfilerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ProfilerListener implements EventSubscriberInterface
4949
*/
5050
public function __construct(Profiler $profiler, $requestStack = null, $matcher = null, $onlyException = false, $onlyMasterRequests = false)
5151
{
52-
if ($requestStack instanceof RequestMatcherInterface || $onlyMasterRequests instanceof RequestStack) {
52+
if ($requestStack instanceof RequestMatcherInterface || (null !== $matcher && !$matcher instanceof RequestMatcherInterface) || $onlyMasterRequests instanceof RequestStack) {
5353
$tmp = $onlyMasterRequests;
5454
$onlyMasterRequests = $onlyException;
5555
$onlyException = $matcher;

0 commit comments

Comments
 (0)