Skip to content

Commit 14fefee

Browse files
committed
fix return types
1 parent 9dc7d91 commit 14fefee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Actions/Action.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Mockery\Expectation;
99
use Mockery\ExpectationInterface;
1010
use Mockery\HigherOrderMessage;
11+
use Mockery\LegacyMockInterface;
1112
use Mockery\MockInterface;
1213

1314
/**
@@ -20,7 +21,7 @@ abstract class Action
2021
{
2122
use Resolvable;
2223

23-
public static function mock(): MockInterface
24+
public static function mock(): MockInterface|LegacyMockInterface
2425
{
2526
if (static::isFake()) {
2627
return static::getFakeResolvedInstance();
@@ -45,7 +46,7 @@ public static function spy(): MockInterface
4546
return static::setFakeResolvedInstance($spy);
4647
}
4748

48-
public static function partialMock(): MockInterface
49+
public static function partialMock(): MockInterface|LegacyMockInterface
4950
{
5051
return static::mock()->makePartial();
5152
}

0 commit comments

Comments
 (0)