| 1 | <?php |
||
| 9 | trait ConfigurationFileReaderTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ConfigurationFileReaderInterface |
||
| 13 | */ |
||
| 14 | private $configurationFileReader; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @return \Mockery\MockInterface|ConfigurationFileReaderInterface |
||
| 18 | */ |
||
| 19 | protected function getConfigurationFileReader() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param Config $return |
||
| 27 | */ |
||
| 28 | protected function shouldReadConfigurationData(Config $return) |
||
| 36 | } |
||
| 37 |
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: