File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
use Mockery \Expectation ;
9
9
use Mockery \ExpectationInterface ;
10
10
use Mockery \HigherOrderMessage ;
11
+ use Mockery \LegacyMockInterface ;
11
12
use Mockery \MockInterface ;
12
13
13
14
/**
@@ -20,7 +21,7 @@ abstract class Action
20
21
{
21
22
use Resolvable;
22
23
23
- public static function mock (): MockInterface
24
+ public static function mock (): MockInterface | LegacyMockInterface
24
25
{
25
26
if (static ::isFake ()) {
26
27
return static ::getFakeResolvedInstance ();
@@ -45,7 +46,7 @@ public static function spy(): MockInterface
45
46
return static ::setFakeResolvedInstance ($ spy );
46
47
}
47
48
48
- public static function partialMock (): MockInterface
49
+ public static function partialMock (): MockInterface | LegacyMockInterface
49
50
{
50
51
return static ::mock ()->makePartial ();
51
52
}
You can’t perform that action at this time.
0 commit comments