[HotFix] Force object typehint
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -22,6 +22,7 @@ final class SymfonyDriver extends BrowserKitDriver
|
||||
));
|
||||
}
|
||||
|
||||
/** @var object $testClient */
|
||||
$testClient = $kernel->getContainer()->get('test.client');
|
||||
|
||||
if (!$testClient instanceof Client) {
|
||||
|
||||
Reference in New Issue
Block a user