Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function setUp() |
||
18 | { |
||
19 | $this->adapter = $this->getMockBuilder('\Fhp\Adapter\Curl') |
||
20 | ->disableOriginalConstructor() |
||
21 | ->setMethods(array('send')) |
||
22 | ->getMock(); |
||
23 | |||
24 | $this->message = $this->getMockBuilder('\Fhp\Message\Message') |
||
25 | ->disableOriginalConstructor() |
||
26 | ->getMock(); |
||
27 | } |
||
28 | |||
48 |
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: