mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
Added stricter types for mocks
This commit is contained in:
@@ -13,10 +13,7 @@ use Symfony\Component\Console\Tester\CommandTester;
|
||||
|
||||
trait CliTestUtilsTrait
|
||||
{
|
||||
/**
|
||||
* @return MockObject & Command
|
||||
*/
|
||||
private function createCommandMock(string $name): MockObject
|
||||
private function createCommandMock(string $name): MockObject & Command
|
||||
{
|
||||
$command = $this->createMock(Command::class);
|
||||
$command->method('getName')->willReturn($name);
|
||||
|
||||
Reference in New Issue
Block a user