| 1 | <?php |
||
| 8 | trait PhpUnitProcessorTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var PhpUnitProcessorInterface |
||
| 12 | */ |
||
| 13 | private $phpUnitProcessor; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return \Mockery\MockInterface|PhpUnitProcessorInterface |
||
| 17 | */ |
||
| 18 | protected function getPhpUnitProcessor() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $options |
||
| 25 | * @param bool $return |
||
| 26 | */ |
||
| 27 | protected function shouldProcessPhpUnit($options, $return) |
||
| 35 | } |
||
| 36 |
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: