bug #93 [HotFix] Force object typehint (lchrusciel)

This PR was merged into the 2.0 branch.

Discussion
----------



Commits
-------

b056e9b5f0 [HotFix] Force object typehint
This commit is contained in:
Kamil Kokot
2019-09-10 12:13:24 +02:00
committed by GitHub
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) {