| 1 | <?php |
||
| 12 | class StringOptionsAwareTraitTest extends PHPUnitTestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected static $setConfigs = []; |
||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string[] $methods |
||
| 22 | * @return MockObject|StringOptionsAwareTrait |
||
| 23 | */ |
||
| 24 | protected function buildMock(array $methods = null) |
||
| 32 | |||
| 33 | |||
| 34 | public function testSetStringOptions() |
||
| 49 | } |
||
| 50 |
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: