| 1 | <?php |
||
| 11 | final class GitCommandRunner implements VCSCommandRunner |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $source |
||
| 15 | * @param string $branch |
||
| 16 | * @param string $workingDirectory |
||
| 17 | */ |
||
| 18 | public function clone(string $source, string $branch, string $workingDirectory): void |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $workingDirectory |
||
| 26 | * |
||
| 27 | * @throws ProcessFailedException |
||
| 28 | * |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | public function getTags(string $workingDirectory): array |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $workingDirectory |
||
| 45 | * |
||
| 46 | * @throws ProcessFailedException |
||
| 47 | */ |
||
| 48 | public function pull(string $workingDirectory): void |
||
| 53 | } |
||
| 54 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: