| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 25 | public function testConcat()  | 
            ||
| 26 |     { | 
            ||
| 27 | $this->fixtures->createAndCdToSandbox();  | 
            ||
| 28 | |||
| 29 | $this->taskConcat(['a.txt', 'b.txt'])  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 30 |             ->to('merged.txt') | 
            ||
| 31 | ->run();  | 
            ||
| 32 |         $this->assertFileExists('merged.txt'); | 
            ||
| 33 | $expected = "A\nB\n";  | 
            ||
| 34 |         $actual = file_get_contents('merged.txt'); | 
            ||
| 35 | $this->assertEquals($expected, $actual);  | 
            ||
| 36 | |||
| 37 | |||
| 38 | }  | 
            ||
| 39 | |||
| 41 | 
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: