1 | <?php |
||
11 | trait ComposerFilesExtractorQueryHandlerTrait |
||
12 | { |
||
13 | /** |
||
14 | * @var ComposerFilesExtractorHandler |
||
15 | */ |
||
16 | private $composerFilesExtractorQueryHandler; |
||
17 | |||
18 | /** |
||
19 | * @return \Mockery\MockInterface|ComposerFilesExtractorHandler |
||
20 | */ |
||
21 | protected function getComposerFilesExtractorQueryHandler() |
||
27 | |||
28 | /** |
||
29 | * @param ComposerFilesExtractor $composerFilesFilesExtractorQuery |
||
30 | * @param ComposerFilesResponse $return |
||
31 | */ |
||
32 | protected function shouldHandleComposerFilesExtractorQuery( |
||
43 | } |
||
44 |
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: