Skip to content

Commit 3a5f515

Browse files
committed
Fix profiler issue
1 parent 784f1b0 commit 3a5f515

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)