Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
29 | protected function setUp() |
||
30 | { |
||
31 | $this->mockOriginalDispatcher = Mockery::mock(EventDispatcherInterface::class); |
||
32 | $this->mockStatsdClient = Mockery::mock(StatsdClientInterface::class); |
||
33 | |||
34 | $this->dispatcher = new RecordingDispatcher($this->mockOriginalDispatcher, $this->mockStatsdClient); |
||
35 | } |
||
36 | |||
51 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: