Skip to content

Commit f1e8210

Browse files
committed
Fix type hints
1 parent 28854fd commit f1e8210

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Module/Doctrine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
use Codeception\Exception\ModuleConfigException;
1414
use Codeception\Module;
15-
use Codeception\TestCase;
15+
use Codeception\TestInterface;
1616
use Doctrine\ORM\EntityManagerInterface;
1717
use PDOException;
1818

1919
class Doctrine extends Module
2020
{
21-
public function _before(TestCase $test)
21+
public function _before(TestInterface $test)
2222
{
2323
if ($this->config['dump']) {
2424
$em = $this->getModule(Nette::class)->grabService(EntityManagerInterface::class);

src/Module/Nette.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Arachne\Codeception\Connector\Nette as NetteConnector;
1414
use Arachne\Codeception\Module\Container as ContainerModule;
1515
use Codeception\Lib\Framework;
16-
use Codeception\TestCase;
16+
use Codeception\TestInterface;
1717
use Nette\DI\Container;
1818
use Nette\DI\MissingServiceException;
1919

@@ -51,7 +51,7 @@ public function _beforeSuite($settings = [])
5151
$this->path = $settings['path'];
5252
}
5353

54-
public function _before(TestCase $test)
54+
public function _before(TestInterface $test)
5555
{
5656
$this->configFiles = null;
5757
$this->container = null;
@@ -78,7 +78,7 @@ public function useConfigFiles(array $configFiles)
7878
$this->configFiles = $configFiles;
7979
}
8080

81-
public function _after(TestCase $test)
81+
public function _after(TestInterface $test)
8282
{
8383
parent::_after($test);
8484

0 commit comments

Comments
 (0)