| 1 | <?php |
||
| 10 | trait PhpCsFixerToolProcessorTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var PhpCsFixerToolProcessor |
||
| 14 | */ |
||
| 15 | private $phpCsFixerToolProcessor; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return MockInterface|PhpCsFixerToolProcessor |
||
| 19 | */ |
||
| 20 | protected function getPhpCsFixerToolProcessor() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $file |
||
| 29 | * @param string $level |
||
| 30 | * @param string $options |
||
| 31 | * @param string $return |
||
| 32 | */ |
||
| 33 | protected function shouldProcessPhpCsFixerTool($file, $level, $options, $return) |
||
| 41 | } |
||
| 42 |
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: