| 1 | <?php |
||
| 8 | trait ConfigurationFileWriterTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ConfigurationFileWriterInterface |
||
| 12 | */ |
||
| 13 | private $configurationFileWriter; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return \Mockery\MockInterface|ConfigurationFileWriterInterface |
||
| 17 | */ |
||
| 18 | protected function getConfigurationFileWriter() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $configurationData |
||
| 27 | */ |
||
| 28 | protected function shouldWriteConfigurationData(array $configurationData) |
||
| 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: