mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Added stricter types for mocks
This commit is contained in:
@@ -13,7 +13,7 @@ use Shlinkio\Shlink\Core\Util\DoctrineBatchHelper;
|
||||
class DoctrineBatchHelperTest extends TestCase
|
||||
{
|
||||
private DoctrineBatchHelper $helper;
|
||||
private MockObject $em;
|
||||
private MockObject & EntityManagerInterface $em;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ use Shlinkio\Shlink\Core\Util\UrlValidator;
|
||||
|
||||
class UrlValidatorTest extends TestCase
|
||||
{
|
||||
private MockObject $httpClient;
|
||||
private MockObject & ClientInterface $httpClient;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user