[HotFix] Force object typehint

This commit is contained in:
Łukasz Chruściel
2019-09-09 19:43:48 +02:00
parent 2ad4dfb1ac
commit b056e9b5f0
2 changed files with 5 additions and 1 deletions

View File

@@ -65,7 +65,10 @@ final class ContextServiceEnvironmentHandler implements EnvironmentHandler
continue;
}
$symfonyContexts[$serviceId] = get_class($this->getContainer()->get($serviceId));
/** @var object $service */
$service = $this->getContainer()->get($serviceId);
$symfonyContexts[$serviceId] = get_class($service);
}
$delegatedSuite = $this->cloneSuiteWithoutContexts($suite, array_keys($symfonyContexts));

View File

@@ -22,6 +22,7 @@ final class SymfonyDriver extends BrowserKitDriver
));
}
/** @var object $testClient */
$testClient = $kernel->getContainer()->get('test.client');
if (!$testClient instanceof Client) {