@@ -148,7 +148,7 @@ |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | /** |
| 151 | - * @param $callable |
|
| 151 | + * @param \Closure $callable |
|
| 152 | 152 | */ |
| 153 | 153 | public function catchIO($callable) |
| 154 | 154 | { |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | * |
| 276 | 276 | * @param string $command |
| 277 | 277 | * @param array $options |
| 278 | - * @return Result |
|
| 278 | + * @return string |
|
| 279 | 279 | */ |
| 280 | 280 | function run($command, $options = []) |
| 281 | 281 | { |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | * |
| 306 | 306 | * @param string $command Command to run locally. |
| 307 | 307 | * @param array $options |
| 308 | - * @return Result Output of command. |
|
| 308 | + * @return string Output of command. |
|
| 309 | 309 | */ |
| 310 | 310 | function runLocally($command, $options = []) |
| 311 | 311 | { |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | * Iterate other hosts, allowing to call run func in callback. |
| 357 | 357 | * |
| 358 | 358 | * @experimental |
| 359 | - * @param Host|Host[] $hosts |
|
| 359 | + * @param Host[] $hosts |
|
| 360 | 360 | * @param callable $callback |
| 361 | 361 | */ |
| 362 | 362 | function on($hosts, callable $callback) |
@@ -720,7 +720,7 @@ discard block |
||
| 720 | 720 | * Check if command exists |
| 721 | 721 | * |
| 722 | 722 | * @param string $command |
| 723 | - * @return bool |
|
| 723 | + * @return boolean|null |
|
| 724 | 724 | */ |
| 725 | 725 | function commandExist($command) |
| 726 | 726 | { |