Skip to content

Commit 3a01635

Browse files
committed
Merge branch '2.1' into merge-2.1-to-2.2
1 parent a88f009 commit 3a01635

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@ public function grabService($service)
448448
*/
449449
protected function getProfile()
450450
{
451+
$container = $this->_getContainer();
452+
if (!$container->has('profiler')) {
453+
return null;
454+
}
455+
451456
$profiler = $this->grabService('profiler');
452457
$response = $this->client->getResponse();
453458
if (null === $response) {

0 commit comments

Comments
 (0)