Skip to content

Commit ee7cb9c

Browse files
authored
Fix profiler issue (#216)
1 parent b6d609c commit ee7cb9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Codeception/Lib/Connector/Symfony.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@ private function resolveContainer(): ContainerInterface
103103

104104
private function getProfiler(): ?Profiler
105105
{
106+
if (!$this->container->has('profiler')) {
107+
return null;
108+
}
109+
106110
$profiler = $this->container->get('profiler');
111+
107112
return $profiler instanceof Profiler ? $profiler : null;
108113
}
109114

0 commit comments

Comments
 (0)