We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d609c commit ee7cb9cCopy full SHA for ee7cb9c
1 file changed
src/Codeception/Lib/Connector/Symfony.php
@@ -103,7 +103,12 @@ private function resolveContainer(): ContainerInterface
103
104
private function getProfiler(): ?Profiler
105
{
106
+ if (!$this->container->has('profiler')) {
107
+ return null;
108
+ }
109
+
110
$profiler = $this->container->get('profiler');
111
112
return $profiler instanceof Profiler ? $profiler : null;
113
}
114
0 commit comments